Skip to content

Commit

Permalink
ci: add separate step for macos with venv
Browse files Browse the repository at this point in the history
  • Loading branch information
k4black committed May 14, 2024
1 parent f13c7f9 commit 65ddee8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ jobs:
steps:
- name: Build wheel
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade build wheel setuptools
python3 -m build --wheel --sdist --outdir ./dist --no-isolation
python3 -m pip install --upgrade build
python3 -m build --wheel --sdist --outdir ./dist
- uses: pypa/gh-action-pypi-publish@release/v1

sync-to-hf-hub:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build wheel
- name: Make venv for macos to cover "error externally-managed-environment"
if: startsWith(matrix.os, 'macos')
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade build wheel setuptools
python3 -m build --wheel --sdist --outdir ./dist --no-isolation
- name: Build wheel
run: |
python3 -m pip install --upgrade build
python3 -m build --wheel --sdist --outdir ./dist
- name: Show dist files
run: ls -lah ./dist
shell: bash
Expand Down

0 comments on commit 65ddee8

Please sign in to comment.