|
|
@ -22,14 +22,19 @@ jobs:
|
|
|
|
uses: actions/setup-python@v3
|
|
|
|
uses: actions/setup-python@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
python-version: "3.10"
|
|
|
|
python-version: "3.10"
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
python-version: "3.10"
|
|
|
|
|
|
|
|
- name: Install poetry
|
|
|
|
|
|
|
|
uses: abatilo/actions-poetry@f295866fdd47fe14b18927b0908ac25ef3d5009a
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
poetry-version: "1.3.2"
|
|
|
|
|
|
|
|
- uses: actions/setup-go@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
go-version: '>=1.19.0'
|
|
|
|
- name: Install dependencies
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
|
|
|
|
pip install poetry flake8
|
|
|
|
|
|
|
|
poetry install
|
|
|
|
poetry install
|
|
|
|
- name: Lint with flake8
|
|
|
|
- name: Run Python lint checks
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
|
|
poetry run pre-commit run --all-files
|
|
|
|
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|