| 1 |
name: Django CI |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ master ] |
| 6 |
pull_request: |
| 7 |
branches: [ master ] |
| 8 |
workflow_dispatch: |
| 9 |
|
| 10 |
jobs: |
| 11 |
build: |
| 12 |
|
| 13 |
runs-on: ubuntu-latest |
| 14 |
strategy: |
| 15 |
max-parallel: 4 |
| 16 |
matrix: |
| 17 |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 18 |
django-version: ["2.2","3.2", "4.2", "5.2"] |
| 19 |
|
| 20 |
steps: |
| 21 |
- uses: actions/checkout@v3 |
| 22 |
- name: Set up Python ${{ matrix.python-version }} |
| 23 |
uses: actions/setup-python@v4 |
| 24 |
with: |
| 25 |
python-version: ${{ matrix.python-version }} |
| 26 |
- name: Install Dependencies |
| 27 |
run: | |
| 28 |
python -m pip install --upgrade pip tox |
| 29 |
pip install -r tests_app/requirements.txt |
| 30 |
- name: Run Tests |
| 31 |
run: | |
| 32 |
tox -- tests_app |