Skip to content

Commit

Permalink
ci: use available python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrolanzieri committed Jun 25, 2024
1 parent 4d30bb4 commit a0949c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
max-parallel: 5
fail-fast: false
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v1
Expand All @@ -34,15 +34,15 @@ jobs:
pyenv="py$(echo "${{ matrix.python-version }}" | tr -d '.')"
tox -e ${pyenv}-test,${pyenv}-rapidjson,flake8,lint
- name: Check code format with black
if: matrix.python-version == 3.9
if: matrix.python-version == "3.9"
run: tox -e black
- name: Check package
if: matrix.python-version == 3.9
if: matrix.python-version == "3.9"
run: tox -e check_package
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
if: >-
matrix.python-version == 3.9 &&
matrix.python-version == "3.9" &&
github.event_name == 'push' &&
startsWith(github.event.ref, 'refs/tags')
with:
Expand Down

0 comments on commit a0949c1

Please sign in to comment.