|
7 | 7 | - master |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - create_matrix: |
| 10 | + prepare: |
11 | 11 | runs-on: ubuntu-latest |
12 | 12 | steps: |
13 | 13 | - name: Create matrix |
14 | | - uses: fabiocaccamo/create-matrix-action@v1 |
| 14 | + id: create_matrix |
| 15 | + uses: fabiocaccamo/create-matrix-action@v3 |
15 | 16 | with: |
16 | 17 | matrix: | |
17 | 18 | python-version {3.7}, django-version {2.0,2.1,2.2,3.0,3.1} |
18 | 19 | python-version {3.8}, django-version {2.2,3.0,3.1,3.2,4.0,4.1} |
19 | 20 | python-version {3.9}, django-version {2.2,3.0,3.1,3.2,4.0,4.1} |
20 | 21 | python-version {3.10}, django-version {3.2,4.0,4.1} |
21 | 22 | python-version {3.11}, django-version {3.2,4.0,4.1} |
22 | | - - name: Set matrix output variable |
23 | | - id: set_matrix |
24 | | - run: | |
25 | | - echo "::set-output name=matrix::$(cat ./matrix.json)" |
26 | 23 | outputs: |
27 | | - matrix: ${{ steps.set_matrix.outputs.matrix }} |
| 24 | + matrix: ${{ steps.create_matrix.outputs.matrix }} |
28 | 25 |
|
29 | 26 | test: |
30 | | - needs: create_matrix |
| 27 | + needs: prepare |
31 | 28 | strategy: |
32 | 29 | fail-fast: false |
33 | 30 | matrix: |
34 | | - include: ${{ fromJSON(needs.create_matrix.outputs.matrix) }} |
| 31 | + include: ${{ fromJson(needs.prepare.outputs.matrix) }} |
35 | 32 | name: "Python ${{ matrix.python-version }} + Django ${{ matrix.django-version }}" |
36 | 33 | runs-on: ubuntu-latest |
37 | 34 | env: |
38 | 35 | POETRY_VIRTUALENVS_CREATE: false |
39 | 36 | steps: |
40 | 37 | - uses: actions/checkout@v3 |
41 | | - - uses: actions/setup-python@v3 |
| 38 | + - uses: actions/setup-python@v4 |
42 | 39 | with: |
43 | 40 | python-version: ${{ matrix.python-version }} |
44 | 41 | - run: pip install poetry |
|
57 | 54 | steps: |
58 | 55 | - uses: actions/checkout@v3 |
59 | 56 | - name: Set up Python |
60 | | - uses: actions/setup-python@v3 |
| 57 | + uses: actions/setup-python@v4 |
61 | 58 | with: |
62 | 59 | python-version: "3.11" |
63 | 60 | - run: pip install black |
|
0 commit comments