From f36fa5e399ff8d4315d83dc2798eb5671898dfd7 Mon Sep 17 00:00:00 2001 From: Amir Szekely Date: Wed, 28 Feb 2024 21:56:23 -0500 Subject: [PATCH] update workflow to avoid deprecation warnings --- .github/workflows/test-and-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index 02511f2..dd69555 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -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 @@ -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 }}