Repository navigation
60 lines (55 loc) · 1.71 KB
/
Copy pathpython-test.yml
File metadata and controls
60 lines (55 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Python Tests
on: [push]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python 3.13
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.13"
- name: Install dependencies
run: pip install tox
- name: Validate formatting
run: tox -e format
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
tox_env:
- py311-django42
- py312-django42
- py313-django42
- py311-django52
- py312-django52
- py313-django52
- py314-django52
include:
- python-version: "3.11"
tox_env: py311-django42
- python-version: "3.12"
tox_env: py312-django42
- python-version: "3.13"
tox_env: py313-django42
- python-version: "3.11"
tox_env: py311-django52
- python-version: "3.12"
tox_env: py312-django52
- python-version: "3.13"
tox_env: py313-django52
- python-version: "3.14"
tox_env: py314-django52
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox -e ${{ matrix.tox_env }}