Skip to content

Commit 03ddd90

Browse files
committed
tweak workflow
1 parent cbaaa86 commit 03ddd90

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3-
41
name: Python unittest
52

63
on:
74
- push
8-
- pull_request
95

106
permissions:
117
contents: read
@@ -24,17 +20,7 @@ jobs:
2420
- name: Install dependencies
2521
run: |
2622
python -m pip install --upgrade pip
27-
pip install flake8 pytest
2823
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29-
- name: Lint with flake8
30-
run: |
31-
# stop the build if there are Python syntax errors or undefined names
32-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
33-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
35-
- name: Test with pytest
24+
- name: Run unittest tests
3625
run: |
37-
# pytest
3826
python3 -c "print('hello world')"
39-
40-

0 commit comments

Comments
 (0)