File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+
9+ strategy :
10+ # By default, GitHub will maximize the number of jobs run in parallel
11+ # depending on the available runners on GitHub-hosted virtual machines.
12+ # max-parallel: 8
13+ fail-fast : false
14+ matrix :
15+ python-version :
16+ - " 3.6"
17+ - " 3.7"
18+ - " 3.8"
19+ - " 3.9"
20+ - " pypy-3.6"
21+ - " pypy-3.7"
22+ tox-env :
23+ - " dj22" # LTS
24+ - " dj31"
25+ - " dj32" # LTS
26+ exclude :
27+ # Python 3.9 is compatible with Django 3.1+
28+ - python-version : " 3.9"
29+ tox-env : " dj22"
30+ - python-version : " 3.9"
31+ tox-env : " dj30"
32+
33+ env :
34+ TOXENV : ${{ matrix.tox-env }}
35+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
37+ steps :
38+ - uses : actions/checkout@v2
39+
40+ - name : Set up Python ${{ matrix.python-version }}
41+ uses : actions/setup-python@v2
42+ with :
43+ python-version : ${{ matrix.python-version }}
44+
45+ - name : Upgrade pip version
46+ run : |
47+ python -m pip install -U pip
48+
49+ - name : Install tox
50+ run : |
51+ pip install flake8 tox 'coverage<5' coveralls
52+
53+ - name : Run tox and coverage
54+ run : |
55+ tox -e $TOXENV
56+ coverage report
57+ coverage html
58+
59+ # - name: Upload coverage to coveralls
60+ # run: |
61+ # coveralls
You can’t perform that action at this time.
0 commit comments