-
Notifications
You must be signed in to change notification settings - Fork 26
53 lines (43 loc) · 1.2 KB
/
python-tests.yml
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
name: Python Tests
on: [push]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install the latest version of rye
uses: eifinger/setup-rye@v4
- name: Validate formatting
run: rye format --check
test:
runs-on: ubuntu-latest
needs: format
strategy:
max-parallel: 4
matrix:
tox_env:
- py38-django42
- py312-django42
- py312-django50
- py312-django51
include:
- python-version: 3.8
tox_env: py38-django42
- python-version: 3.12
tox_env: py312-django42
- python-version: 3.12
tox_env: py312-django50
- python-version: 3.12
tox_env: py312-django51
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- name: Install the latest version of rye
uses: eifinger/setup-rye@v4
- name: Install dependencies
run: rye sync
- name: Test with tox
run: rye run tox -e ${{ matrix.tox_env }}