Skip to content

Commit 186889b

Browse files
committed
Update pythonpackage.yml
1 parent 603ca7f commit 186889b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,25 @@ name: Python package
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710

811
runs-on: ubuntu-latest
9-
strategy:
10-
max-parallel: 4
11-
matrix:
12-
python-version: [3.10]
1312

1413
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
1817
with:
19-
python-version: ${{ matrix.python-version }}
18+
python-version: "3.10"
2019
- name: Install dependencies
2120
run: |
2221
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
2424
- name: Test with pytest
2525
run: |
26-
pip install pytest
2726
pytest

0 commit comments

Comments
 (0)