mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
注释pytest
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user