Skip to content

Django 5.0

Django 5.0 #42

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Install gettext
run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends gettext
- uses: actions/checkout@v4
- uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Ensure Python version ${{ matrix.python-version }}
# https://github.com/actions/setup-python/issues/425
run: poetry env use ${{ matrix.python-version }}
- name: Install requirements
run: poetry install
- name: Django check
run: poetry run python manage.py check
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Run tests
run: tox
env:
FORCE_COLOR: true