File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,21 @@ name: Python
33
44on :
55 push :
6- branches : [ master ]
6+ branches : [ "master", "main" ]
7+ paths :
8+ - ' pyproject.toml'
9+ - ' **.py'
10+ - ' .github/workflows/python-testing.yml'
11+
712 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
921
1022concurrency :
1123 # only cancel in-progress runs of the same workflow
@@ -17,6 +29,9 @@ concurrency:
1729jobs :
1830 check :
1931 runs-on : ubuntu-latest
32+ # Timout of 15min
33+ timeout-minutes : 15
34+
2035 steps :
2136 - uses : actions/checkout@v3
2237 - name : Output env variables
4156 - name : Set up Python ${{ matrix.python-version }}
4257 uses : actions/setup-python@v3
4358 with :
44- python-version : 3.7
59+ python-version : 3.8
60+ cache : ' pip'
4561 - name : Install dependencies
4662 run : |
4763 python3 -m pip install --upgrade pip setuptools setuptools-scm
7086 uses : actions/setup-python@v4
7187 with :
7288 python-version : ${{ matrix.python-version }}
89+ cache : ' pip'
7390 - name : Install dependencies
7491 run : |
7592 python3 -m pip install --upgrade pip
You can’t perform that action at this time.
0 commit comments