Skip to content

Commit

Permalink
chore: move tests for gettext, flake8, docs, coverage into distinct jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbi committed Nov 15, 2024
1 parent 2b83cfa commit e8fba85
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 2 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,83 @@ jobs:
- run: python -m pip install tox tox-gh-actions
- name: Run tests
run: tox

docs:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version:
- '3.9'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and upgrade packaging tools
run: python -m pip install --upgrade pip setuptools wheel
- run: python -m pip install tox tox-gh-actions
- name: Run tests
run: tox -e docs

coverage:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version:
- '3.12'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and upgrade packaging tools
run: python -m pip install --upgrade pip setuptools wheel
- run: python -m pip install tox tox-gh-actions
- name: Run tests
run: tox -e coverage

gettext:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version:
- '3.9'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and upgrade packaging tools
run: python -m pip install --upgrade pip setuptools wheel
- run: python -m pip install tox tox-gh-actions
- name: Run tests
run: tox -e gettext

flake8:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version:
- '3.9'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install and upgrade packaging tools
run: python -m pip install --upgrade pip setuptools wheel
- run: python -m pip install tox tox-gh-actions
- name: Run tests
run: tox -e flake8
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ envlist =

[gh-actions]
python =
3.12: py312-django50, py312-django51, py312-django51-jinja2, coverage
3.12: py312-django50, py312-django51, py312-django51-jinja2
3.11: p311-django-51, p311-django-50, p311-django-50-jinjia, p311-django-42, p311-django-42-jinjia
3.10: py310-django42, py310-django42-jinja2, py310-django50, py310-django51, py310-django50-jinja2
3.9: py39-django42, py39-django42-jinja2, flake8, docs, gettext
3.9: py39-django42, py39-django42-jinja2

[testenv]
changedir = testproject
Expand Down

0 comments on commit e8fba85

Please sign in to comment.