File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : build package
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ push :
8+ tags :
9+ - ' *'
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-python@v5
17+ with :
18+ python-version : ' 3.10'
19+ - run : |
20+ pip install tox
21+ - name : Run linters
22+ run : tox -e build || true
23+
24+ test :
25+ runs-on : ubuntu-latest
26+ needs : build
27+ strategy :
28+ matrix :
29+ pyversion :
30+ - ' 3.6'
31+ - ' 3.10'
32+ - ' 3.12'
33+ steps :
34+ - uses : actions/checkout@v4
35+ - uses : actions/setup-python@v5.4.0
36+ with :
37+ python-version : ${{ matrix.pyversion }}
38+ - run : |
39+ pip install tox
40+ - name : Run unittests
41+ run : tox -e unittests
42+
43+ lint :
44+ runs-on : ubuntu-latest
45+ needs : build
46+ steps :
47+ - uses : actions/checkout@v4
48+ - uses : actions/setup-python@v5
49+ with :
50+ python-version : ' 3.10'
51+ - run : |
52+ pip install tox
53+ - name : Run linters
54+ run : tox -e lint || true
You can’t perform that action at this time.
0 commit comments