From dbeea8a8505000af96039c51ba7b91256a60ed53 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 23 May 2022 11:13:16 -0500 Subject: [PATCH] Update workflow (#133) --- .github/workflows/tox.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 5990838..fb17a6a 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -141,13 +141,6 @@ jobs: TOXENV: packaging steps: - - name: Switch to using Python 3.6 by default - uses: actions/setup-python@v3.0.0 - with: - python-version: 3.6 - cache: pip - - name: Install tox - run: python3 -m pip install --user tox - name: Check out src from Git uses: actions/checkout@v2 with: @@ -167,6 +160,13 @@ jobs: ) && 1 || 0 }} + - name: Switch to using Python 3.9 by default + uses: actions/setup-python@v3 + with: + python-version: "3.9" + cache: pip + - name: Install tox + run: python3 -m pip install --user tox - name: Drop Git tags from HEAD for non-tag-create and non-release events if: >- ( @@ -192,13 +192,13 @@ jobs: github.event_name == 'create' && github.event.ref_type == 'tag' ) - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.testpypi_password }} repository_url: https://test.pypi.org/legacy/ - name: Publish to pypi.org if: >- # "create" workflows run separately from "push" & "pull_request" github.event_name == 'release' - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.pypi_password }}