Skip to content

Commit

Permalink
Fix: create .venv when publishing so that maturin doesn't crash (#2675)
Browse files Browse the repository at this point in the history
* Fix: create .venv when publishing so that maturin doesn't crash

* Activate the venv as well

* Move venv activation to the front, include in build & publish rule too

* Another source venv command for the make docs rule
  • Loading branch information
georgesittas authored Dec 14, 2023
1 parent 7188431 commit 9e7112b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
python-version: "3.10"
- name: Install dependencies
run: |
python -m venv .venv
source ./.venv/bin/activate
python -m pip install --upgrade pip
pip install setuptools wheel twine
make install-dev
Expand All @@ -24,10 +26,13 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
source ./.venv/bin/activate
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Update API docs
run: make docs
run: |
source ./.venv/bin/activate
make docs
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
Expand Down

0 comments on commit 9e7112b

Please sign in to comment.