File tree 1 file changed +9
-10
lines changed 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,25 @@ name: Python package
2
2
3
3
on : [push]
4
4
5
+ permissions :
6
+ contents : read
7
+
5
8
jobs :
6
9
build :
7
10
8
11
runs-on : ubuntu-latest
9
- strategy :
10
- max-parallel : 4
11
- matrix :
12
- python-version : [3.10]
13
12
14
13
steps :
15
- - uses : actions/checkout@v1
16
- - name : Set up Python ${{ matrix.python-version }}
17
- uses : actions/setup-python@v1
14
+ - uses : actions/checkout@v3
15
+ - name : Set up Python 3.10
16
+ uses : actions/setup-python@v3
18
17
with :
19
- python-version : ${{ matrix.python-version }}
18
+ python-version : " 3.10 "
20
19
- name : Install dependencies
21
20
run : |
22
21
python -m pip install --upgrade pip
23
- pip install -r requirements.txt
22
+ pip install pytest
23
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
24
24
- name : Test with pytest
25
25
run : |
26
- pip install pytest
27
26
pytest
You can’t perform that action at this time.
0 commit comments