注释pytest

This commit is contained in:
Jing Ling
2019-12-13 01:46:54 +08:00
committed by GitHub
parent 70d3267803
commit 30bc74a9a9
+5 -5
View File
@@ -16,7 +16,6 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install coverage
pip install -r requirements.txt pip install -r requirements.txt
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
@@ -25,10 +24,11 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest # - name: Test with pytest
run: | # run: |
pip install pytest # pip install pytest
pytest # pytest
- name: Test with example - name: Test with example
run: | run: |
pip install coverage
coverage run oneforall/example.py coverage run oneforall/example.py