-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (48 loc) · 1.28 KB
/
test.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: CI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- python: "3.8"
DJANGO: "2.1"
os: ubuntu-latest
- python: "3.8"
DJANGO: "3.0"
os: ubuntu-latest
- python: "3.9"
DJANGO: "4.0"
os: ubuntu-latest
- python: "3.9"
DJANGO: "4.1"
os: ubuntu-latest
- python: "3.11"
DJANGO: "4.0"
os: ubuntu-latest
- python: "3.11"
DJANGO: "4.1"
COVERALLS: 1
os: ubuntu-latest
steps:
- name: Setup python for test ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Add poetry
uses: abatilo/[email protected]
with:
poetry-version: "1.4.0"
- uses: actions/checkout@v2
- name: Install tox
run: python -m pip install tox
- name: Run ci
run: tox
env:
TOXENV: "py${{ matrix.python }}-django${{ matrix.DJANGO }}"
- name: Publish coverage
run: pip install coveralls && coveralls
if: ${{ matrix.COVERALLS == '1' }}
env:
GITHUB_TOKEN: ${{ secrets.COVERALLS_TOKEN }}