-
Notifications
You must be signed in to change notification settings - Fork 53
62 lines (55 loc) · 1.48 KB
/
ci.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
54
55
56
57
58
59
60
61
62
name: CI
on:
- push
- pull_request
jobs:
main:
strategy:
matrix:
include:
- python: '3.8'
tox_env: 'py38-dj22-drf313'
- python: '3.9'
tox_env: 'py39-dj22-drf313'
- python: '3.8'
tox_env: 'py38-dj32-drf314'
- python: '3.9'
tox_env: 'py39-dj32-drf314'
- python: '3.10'
tox_env: 'py310-dj32-drf314'
- python: '3.8'
tox_env: 'py38-dj42-drf314'
- python: '3.9'
tox_env: 'py39-dj42-drf314'
- python: '3.10'
tox_env: 'py310-dj42-drf314'
- python: '3.11'
tox_env: 'py311-dj42-drf314'
- python: '3.12'
tox_env: 'py312-dj42-drf314'
- python: '3.10'
tox_env: 'py310-dj50-drf314'
- python: '3.11'
tox_env: 'py311-dj50-drf314'
- python: '3.12'
tox_env: 'py312-dj50-drf314'
runs-on: ubuntu-22.04
name: Python ${{ matrix.python }} with packages ${{ matrix.tox_env }}
steps:
- uses: actions/checkout@v4
- name: set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: install dependencies
run: python -m pip install tox coverage
- name: run test suite
env:
TOX_ENV: ${{ matrix.tox_env }}
run: tox -ve $TOX_ENV
- name: run coverage
env:
TOX_ENV: ${{ matrix.tox_env }}
run: |
python -m pip install codecov
codecov -e TOX_ENV