Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit 8aac7b8

Browse files
authored
Merge pull request #237 from snok/latest-python-versions
Make python test matrix dynamic
2 parents 96912d0 + c23f8b6 commit 8aac7b8

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/testing.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,25 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: snok/.github/workflows/linting@main
10+
11+
get-python-versions:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
python-matrix: ${{ steps.get-python-versions-action.outputs.latest-python-versions }}
15+
steps:
16+
- uses: snok/latest-python-versions@v1
17+
id: get-python-versions-action
18+
with:
19+
min-version: 3.6
20+
include-prereleases: true
21+
1022
test:
11-
# ---------------------------------------------------
12-
# Documentation and examples can be found at
13-
# https://github.com/snok/install-poetry
14-
# ---------------------------------------------------
15-
needs: linting
23+
needs: [linting, get-python-versions]
1624
runs-on: ubuntu-latest
1725
strategy:
1826
fail-fast: false
1927
matrix:
20-
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10.0-rc.1" ]
28+
python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }}
2129
django-version: [ "2.2", "3.0", "3.1", "3.2" ]
2230
steps:
2331
- name: Check out repository

0 commit comments

Comments
 (0)