Skip to content

Commit

Permalink
paired matrix vars
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman committed Nov 8, 2023
1 parent b79c2b7 commit c57d1ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/validations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ jobs:
strategy:
matrix:
# note: this is not a single source of truth (this is also in the tox.ini)
python-version: ['3.9', '3.10', '3.11']
python:
- version: '3.9'
toxEnv: py39

- version: '3.10'
toxEnv: py310

- version: '3.11'
toxEnv: py311
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
Expand All @@ -49,10 +57,10 @@ jobs:
- name: Bootstrap environment
uses: ./.github/actions/bootstrap
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python.version }}

- name: Run unit tests
run: poetry run tox -e ${{ matrix.python-version }}
run: poetry run tox -e ${{ matrix.python.toxEnv }}

- name: Build assets
run: poetry run make build
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
# note: this is not a single source of truth (this is also in the .github/workflows/valiations.yml file)
envlist = py39, py310, py311, py312
envlist = py39, py310, py311
isolated_build = True

[testenv]
allowlist_externals = poetry
Expand Down

0 comments on commit c57d1ba

Please sign in to comment.