Skip to content

Commit 40818fb

Browse files
authored
Update python-package.yml
1 parent 64b150c commit 40818fb

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: Python package
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
6+
test:
87
runs-on: ubuntu-latest
9-
108
steps:
119
- uses: actions/checkout@v2
1210
- name: Set up Python
@@ -16,12 +14,9 @@ jobs:
1614
- name: Install dependencies
1715
run: |
1816
python -m pip install --upgrade pip
19-
pip install flake8 pytest
20-
pip install -e .
21-
- name: Lint with flake8
22-
run: |
23-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
24-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
25-
- name: Test with pytest
17+
pip install pytest
18+
pip install -e .
19+
- name: Run tests
2620
run: |
27-
pytest
21+
export PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE
22+
pytest tests/

0 commit comments

Comments
 (0)