mirror of
https://github.com/karl0ss/downgrangefixtures_ical.git
synced 2025-05-18 12:26:19 +01:00
Update python-app.yml
This commit is contained in:
parent
fc821229b3
commit
a33c877890
22
.github/workflows/python-app.yml
vendored
22
.github/workflows/python-app.yml
vendored
@ -23,17 +23,21 @@ jobs:
|
|||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
|
- name: Install Poetry
|
||||||
|
uses: snok/install-poetry@v1
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install flake8 pytest
|
pip install flake8 pytest
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
- name: Lint with flake8
|
poetry shell
|
||||||
run: |
|
poetry install
|
||||||
# stop the build if there are Python syntax errors or undefined names
|
# - name: Lint with flake8
|
||||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
# run: |
|
||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
# # stop the build if there are Python syntax errors or undefined names
|
||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||||
- name: Test with pytest
|
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||||
run: |
|
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
pytest
|
# - name: Test with pytest
|
||||||
|
# run: |
|
||||||
|
# pytest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user