Skip to content

Commit

Permalink
update workflow to avoid deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kichik committed Feb 29, 2024
1 parent d87201c commit f36fa5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
build-n-publish:
name: Test, build and publish

runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Dependencies
Expand All @@ -28,7 +28,7 @@ jobs:
python setup.py sdist bdist_wheel
- name: Publish to PyPI
if: startsWith(github.event.ref, 'refs/tags') && matrix.python-version == '3.7'
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.pypi_user }}
password: ${{ secrets.pypi_password }}

0 comments on commit f36fa5e

Please sign in to comment.