File tree Expand file tree Collapse file tree 3 files changed +71
-46
lines changed Expand file tree Collapse file tree 3 files changed +71
-46
lines changed Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - " test-me-*"
8
+ tags :
9
+ - " *"
10
+ pull_request :
11
+ branches :
12
+ - master
13
+
14
+ # Set permissions at the job level.
15
+ permissions : {}
16
+
17
+ jobs :
18
+ lint :
19
+ runs-on : ubuntu-20.04
20
+ timeout-minutes : 10
21
+ permissions :
22
+ contents : read
23
+
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+
27
+ - uses : actions/setup-python@v4
28
+ with :
29
+ python-version : 3.11
30
+
31
+ - name : Install dependencies
32
+ run : |
33
+ python -m pip install --upgrade pip
34
+ pip install tox
35
+
36
+ - name : Lint
37
+ run : tox -e lint
38
+
39
+ test :
40
+ runs-on : ubuntu-20.04
41
+ timeout-minutes : 10
42
+ permissions :
43
+ contents : read
44
+
45
+ strategy :
46
+ fail-fast : false
47
+ matrix :
48
+ python : [
49
+ " 3.7.1" ,
50
+ " 3.7" ,
51
+ " 3.8" ,
52
+ " 3.9" ,
53
+ " 3.10" ,
54
+ " 3.11" ,
55
+ ]
56
+
57
+ steps :
58
+ - uses : actions/checkout@v3
59
+
60
+ - uses : actions/setup-python@v4
61
+ with :
62
+ python-version : ${{ matrix.python }}
63
+
64
+ - name : Install dependencies
65
+ run : |
66
+ python -m pip install --upgrade pip
67
+ pip install tox
68
+
69
+ - name : Test
70
+ run : tox -e py
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ commands = python -m unittest discover tests
9
9
10
10
[testenv:lint]
11
11
description = check the code style
12
- basepython = python3.7
12
+ basepython = python3
13
13
deps = flake8
14
14
commands = flake8 -j0 {posargs}
15
15
You can’t perform that action at this time.
0 commit comments