Skip to content

Commit

Permalink
Update test_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil committed Jun 20, 2024
1 parent e194d03 commit 96241c0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
run: |
coverage run -m --source=./rlskyjo pytest tests
coverage xml
- name: Upload coverage to Codecov for python 3.8
if: ${{ matrix.python == '3.8' }}
- name: Upload coverage to Codecov for python 3.9
if: ${{ matrix.python == '3.9' }}
uses: codecov/codecov-action@v2

deploy_docs:
Expand Down Expand Up @@ -130,10 +130,10 @@ jobs:
name: Build and publish Python 🐍 distributions 📦 to PyPI
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: "3.9"

- name: Install pypa/build
run: |
Expand All @@ -148,9 +148,11 @@ jobs:
password: ${{ secrets.TEST_PYPI_API_TOKEN}}
repository_url: https://test.pypi.org/legacy/

- name: Publish distribution 📦 to PyPI
- name: Publish package distributions to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

packages-dir: dist/
verbose: true
print-hash: true

0 comments on commit 96241c0

Please sign in to comment.