Skip to content

Commit b5884fb

Browse files
committed
Ammendments to workflows
1 parent 6bae313 commit b5884fb

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

.github/workflows/run_pytest.yml

+21-12
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
# Run pytest with GitHub Actions
22
name: pytest
33

4-
on: [push]
5-
6-
defaults:
7-
run:
8-
working-directory: ./tests
4+
on:
5+
push:
6+
branches:
7+
- master
8+
- main
9+
pull_request:
10+
branches:
11+
- master
12+
- main
913

1014
jobs:
11-
test:
15+
build:
1216
runs-on: ubuntu-latest
1317

14-
steps:
15-
- uses: actions/checkout@v2
1618

17-
- name: Set up Python 3.6
18-
uses: actions/setup-python@v2
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
1923
with:
20-
python-version: 3.6
24+
python-version: '3.8'
2125

2226
- name: Install dependencies
2327
run: |
2428
python -m pip install --upgrade pip
25-
pip install -r requirements.txt
29+
pip install pytest
30+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31+
32+
- name: Install package
33+
run: |
34+
pip install .
2635
2736
- name: Run pytest
2837
run: |

0 commit comments

Comments
 (0)