diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bfdeabd..bb1801b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/tox.ini b/tox.ini index 656ea53..b2a42d1 100644 --- a/tox.ini +++ b/tox.ini @@ -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