Skip to content

Commit e8fba85

Browse files
committed
chore: move tests for gettext, flake8, docs, coverage into distinct jobs
1 parent 2b83cfa commit e8fba85

File tree

2 files changed

+82
-2
lines changed

2 files changed

+82
-2
lines changed

.github/workflows/test.yml

+80
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,83 @@ jobs:
4343
- run: python -m pip install tox tox-gh-actions
4444
- name: Run tests
4545
run: tox
46+
47+
docs:
48+
runs-on: ubuntu-latest
49+
strategy:
50+
max-parallel: 4
51+
matrix:
52+
python-version:
53+
- '3.9'
54+
steps:
55+
- name: Checkout
56+
uses: actions/checkout@v4
57+
- name: Set up Python
58+
uses: actions/setup-python@v4
59+
with:
60+
python-version: ${{ matrix.python-version }}
61+
- name: Install and upgrade packaging tools
62+
run: python -m pip install --upgrade pip setuptools wheel
63+
- run: python -m pip install tox tox-gh-actions
64+
- name: Run tests
65+
run: tox -e docs
66+
67+
coverage:
68+
runs-on: ubuntu-latest
69+
strategy:
70+
max-parallel: 4
71+
matrix:
72+
python-version:
73+
- '3.12'
74+
steps:
75+
- name: Checkout
76+
uses: actions/checkout@v4
77+
- name: Set up Python
78+
uses: actions/setup-python@v4
79+
with:
80+
python-version: ${{ matrix.python-version }}
81+
- name: Install and upgrade packaging tools
82+
run: python -m pip install --upgrade pip setuptools wheel
83+
- run: python -m pip install tox tox-gh-actions
84+
- name: Run tests
85+
run: tox -e coverage
86+
87+
gettext:
88+
runs-on: ubuntu-latest
89+
strategy:
90+
max-parallel: 4
91+
matrix:
92+
python-version:
93+
- '3.9'
94+
steps:
95+
- name: Checkout
96+
uses: actions/checkout@v4
97+
- name: Set up Python
98+
uses: actions/setup-python@v4
99+
with:
100+
python-version: ${{ matrix.python-version }}
101+
- name: Install and upgrade packaging tools
102+
run: python -m pip install --upgrade pip setuptools wheel
103+
- run: python -m pip install tox tox-gh-actions
104+
- name: Run tests
105+
run: tox -e gettext
106+
107+
flake8:
108+
runs-on: ubuntu-latest
109+
strategy:
110+
max-parallel: 4
111+
matrix:
112+
python-version:
113+
- '3.9'
114+
steps:
115+
- name: Checkout
116+
uses: actions/checkout@v4
117+
- name: Set up Python
118+
uses: actions/setup-python@v4
119+
with:
120+
python-version: ${{ matrix.python-version }}
121+
- name: Install and upgrade packaging tools
122+
run: python -m pip install --upgrade pip setuptools wheel
123+
- run: python -m pip install tox tox-gh-actions
124+
- name: Run tests
125+
run: tox -e flake8

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ envlist =
1010

1111
[gh-actions]
1212
python =
13-
3.12: py312-django50, py312-django51, py312-django51-jinja2, coverage
13+
3.12: py312-django50, py312-django51, py312-django51-jinja2
1414
3.11: p311-django-51, p311-django-50, p311-django-50-jinjia, p311-django-42, p311-django-42-jinjia
1515
3.10: py310-django42, py310-django42-jinja2, py310-django50, py310-django51, py310-django50-jinja2
16-
3.9: py39-django42, py39-django42-jinja2, flake8, docs, gettext
16+
3.9: py39-django42, py39-django42-jinja2
1717

1818
[testenv]
1919
changedir = testproject

0 commit comments

Comments
 (0)