-
Notifications
You must be signed in to change notification settings - Fork 121
67 lines (59 loc) · 1.64 KB
/
test.yml
File metadata and controls
67 lines (59 loc) · 1.64 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
61
62
63
64
65
66
67
name: Tests
on:
push:
pull_request:
types: [opened, reopened]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
django-version:
- '42'
- '50'
exclude:
- python-version: '3.9'
django-version: '50'
env:
PYTHON_VERSION: ${{ matrix.python-version }}
DJANGO_VERSION: ${{ matrix.django-version }}
PYTHONUNBUFFERED: 1
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements*.txt
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip wheel
make native-install-all
python -m pip install tox
- name: Test with tox
run: |
echo "Running py${PYTHON_VERSION/\./}-django${DJANGO_VERSION}"
tox -e "py${PYTHON_VERSION/\./}-django${DJANGO_VERSION}"
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.python-version }}-${{ matrix.django-version }}
parallel: true
path-to-lcov: "coverage.lcov"
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
path-to-lcov: "coverage.lcov"