File tree Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Expand file tree Collapse file tree 2 files changed +84
-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 and coverage packages
50+ run : |
51+ pip install tox tox-gh-actions '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
62+
63+ lint :
64+ runs-on : ubuntu-latest
65+
66+ steps :
67+ - uses : actions/checkout@v2
68+
69+ - name : Set up Python 3.6
70+ uses : actions/setup-python@v2
71+ with :
72+ python-version : ' 3.6'
73+
74+ - name : Install tox and flake8 packages
75+ run : pip install tox tox-gh-actions flake8
76+
77+ - name : Lint
78+ run : tox -e flake8
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ toxworkdir = {homedir}/.toxenvs/django-click
66envlist =
77 dj{22,31,32},flake8
88
9+ [gh-actions]
10+ django =
11+ 2.2: dj22
12+ 3.1: dj31
13+ 3.2: dj32
14+
915[testenv]
1016usedevelop = true
1117passenv = LC_ALL, LANG, LC_CTYPE
You can’t perform that action at this time.
0 commit comments