Skip to content

Commit 035c607

Browse files
Fix matrix
1 parent aa26ae7 commit 035c607

File tree

1 file changed

+43
-40
lines changed

1 file changed

+43
-40
lines changed

.github/workflows/test.yml

+43-40
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,49 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-latest
12-
11+
runs-on: ubuntu-22.04
1312
strategy:
1413
matrix:
15-
python-version:
16-
- 2.7
17-
- 3.9
18-
- 3.10
19-
- 3.11
20-
- 3.12
21-
- 3.13
22-
toxenv:
23-
- py27-core
24-
- py39-core
25-
- py310-core
26-
- py311-core
27-
- py312-core
28-
- py313-core
29-
- py27-django111
30-
- py39-django32
31-
- py310-django42
32-
- py311-django42
33-
- py312-django50
34-
- py313-django51
35-
14+
include:
15+
- python-version: 2.7
16+
toxenv: py27-core
17+
- python-version: 3.9
18+
toxenv: py39-core
19+
- python-version: 3.10
20+
toxenv: py310-core
21+
- python-version: 3.11
22+
toxenv: py311-core
23+
- python-version: 3.12
24+
toxenv: py312-core
25+
- python-version: 3.13
26+
toxenv: py313-core
27+
- python-version: 2.7
28+
toxenv: py27-django111
29+
- python-version: 3.9
30+
toxenv: py39-django32
31+
- python-version: 3.10
32+
toxenv: py310-django42
33+
- python-version: 3.11
34+
toxenv: py311-django42
35+
- python-version: 3.12
36+
toxenv: py312-django50
37+
- python-version: 3.13
38+
toxenv: py313-django51
3639
steps:
37-
- uses: actions/checkout@v4
38-
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v2
40-
with:
41-
python-version: ${{ matrix.python-version }}
42-
- name: Install dependencies
43-
run: |
44-
python -m pip install --upgrade pip
45-
pip install tox pytest
46-
- name: Set up Cloudinary URL
47-
run: |
48-
export CLOUDINARY_URL=$(bash tools/get_test_cloud.sh)
49-
echo "cloud_name: $(echo $CLOUDINARY_URL | cut -d'@' -f2)"
50-
- name: Run tests
51-
run: |
52-
export PYTHONPATH="${PYTHONPATH}:$(pwd)"
53-
tox -e ${{ matrix.toxenv }}
40+
- name: Checkout code
41+
uses: actions/checkout@v4
42+
43+
- name: Set up Python ${{ matrix.python-version }}
44+
uses: actions/setup-python@v4
45+
with:
46+
python-version: ${{ matrix.python-version }}
47+
48+
- name: Install dependencies
49+
run: |
50+
pip install tox pytest mock
51+
52+
- name: Run tests with tox
53+
env:
54+
TOXENV: ${{ matrix.toxenv }}
55+
DJANGO_SETTINGS_MODULE: django_tests.settings
56+
run: tox -e $TOXENV

0 commit comments

Comments
 (0)