Skip to content

Commit

Permalink
Merge pull request #169 from SpikeInterface/update-publish-action
Browse files Browse the repository at this point in the history
Update publish action
  • Loading branch information
alejoe91 authored Apr 6, 2024
2 parents a24f3c1 + 9bc8470 commit 206e16b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,20 @@ jobs:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
with:
python-version: "3.9"
python-version: "3.10"
- name: Which python
run: |
conda --version
- name: Install dependencies
run: |
pip install .[templates,test]
pip install setuptools wheel twine
- name: Test with pytest and build coverage report
run: |
pytest -s
- name: Publish on PyPI
- name: Package and Upload
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
STACKMANAGER_VERSION: ${{ github.event.release.tag_name }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
python -m build --sdist --wheel
twine upload dist/*

0 comments on commit 206e16b

Please sign in to comment.