File tree 1 file changed +20
-3
lines changed
Filter options
1 file changed +20
-3
lines changed
Original file line number Diff line number Diff line change @@ -3,9 +3,21 @@ name: Python
3
3
4
4
on :
5
5
push :
6
- branches : [ master ]
6
+ branches : [ "master", "main" ]
7
+ paths :
8
+ - ' pyproject.toml'
9
+ - ' **.py'
10
+ - ' .github/workflows/python-testing.yml'
11
+
7
12
pull_request :
8
- branches : [ master ]
13
+ branches : [ "master", "main" ]
14
+ paths :
15
+ - ' pyproject.toml'
16
+ - ' **.py'
17
+ - ' .github/workflows/python-testing.yml'
18
+
19
+ permissions :
20
+ contents : read
9
21
10
22
concurrency :
11
23
# only cancel in-progress runs of the same workflow
@@ -17,6 +29,9 @@ concurrency:
17
29
jobs :
18
30
check :
19
31
runs-on : ubuntu-latest
32
+ # Timout of 15min
33
+ timeout-minutes : 15
34
+
20
35
steps :
21
36
- uses : actions/checkout@v3
22
37
- name : Output env variables
41
56
- name : Set up Python ${{ matrix.python-version }}
42
57
uses : actions/setup-python@v3
43
58
with :
44
- python-version : 3.7
59
+ python-version : 3.8
60
+ cache : ' pip'
45
61
- name : Install dependencies
46
62
run : |
47
63
python3 -m pip install --upgrade pip setuptools setuptools-scm
70
86
uses : actions/setup-python@v4
71
87
with :
72
88
python-version : ${{ matrix.python-version }}
89
+ cache : ' pip'
73
90
- name : Install dependencies
74
91
run : |
75
92
python3 -m pip install --upgrade pip
You can’t perform that action at this time.
0 commit comments