Skip to content

Commit

Permalink
Setup Python version matrix for GHA (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
gliptak authored Nov 23, 2023
1 parent f9b513e commit 3b73d7e
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,21 @@ env:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.7, 3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.7
uses: actions/setup-python@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'

- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: '3.8'

- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.9'

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: ${{ matrix.python }}

- name: setup
run: |
python3.10 -m pip install --upgrade pip
python3.10 -m pip install --upgrade tox
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: run tests
run: python3.10 -m tox -q
run: python -m tox -q

0 comments on commit 3b73d7e

Please sign in to comment.