chg: [workflows] Updated build workflows.

This commit is contained in:
Cédric Bonhomme 2022-11-20 21:57:39 +01:00
parent e988e9e02a
commit e68404176a
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
2 changed files with 4 additions and 4 deletions

View file

@ -29,9 +29,9 @@ tasks:
export PATH="$PATH:/home/build/.local/bin"
cd ${project}
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 stegano --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
poetry run flake8 . --count --max-complexity=10 --max-line-length=127 --statistics
poetry run flake8 stegano --count --max-complexity=10 --max-line-length=127 --statistics
- test: |
export PATH="$PATH:/home/build/.local/bin"
cd ${project}

View file

@ -27,9 +27,9 @@ jobs:
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 stegano --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --max-complexity=15 --max-line-length=127 --statistics
poetry run flake8 stegano --count --max-complexity=15 --max-line-length=127 --statistics
- name: Test with pytest
run: |