Skip to content

Commit

Permalink
Update workflow (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-hellings authored May 23, 2022
1 parent ac34617 commit dbeea8a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: >-
(
Expand All @@ -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 }}

0 comments on commit dbeea8a

Please sign in to comment.