File tree Expand file tree Collapse file tree 2 files changed +62
-1
lines changed Expand file tree Collapse file tree 2 files changed +62
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Run Tests with Tox
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+
15+ strategy :
16+ matrix :
17+ python-version : [
18+ 3.11,
19+ 3.12,
20+ 3.13
21+ ]
22+
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@v3
26+
27+ - name : Set up Python
28+ uses : actions/setup-python@v4
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+
32+ - name : Install dependencies
33+ run : |
34+ python -m pip install --upgrade pip
35+ pip install tox
36+
37+ - name : Run tests with Tox
38+ run : tox
39+
40+ coverage :
41+ needs : test
42+ runs-on : ubuntu-latest
43+
44+ steps :
45+ - name : Checkout code
46+ uses : actions/checkout@v3
47+
48+ - name : Set up Python
49+ uses : actions/setup-python@v4
50+ with :
51+ python-version : ' 3.12'
52+
53+ - name : Install dependencies
54+ run : |
55+ python -m pip install --upgrade pip
56+ pip install tox coveralls
57+
58+ - name : Run coverage with Tox
59+ run : tox -e coverage
60+ env :
61+ COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
Original file line number Diff line number Diff line change 11[tox]
2- envlist = py{3.12 }
2+ envlist = py{3.11, 3.12, 3.13 }
33
44[testenv]
55deps =
You can’t perform that action at this time.
0 commit comments