Skip to content

Commit

Permalink
changed packages in pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
wmelder committed Jan 8, 2024
1 parent f03bd95 commit ced6db1
Show file tree
Hide file tree
Showing 4 changed files with 312 additions and 446 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,22 @@ on:

jobs:
test:
runs-on: ubuntu-20.04 # ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.0
- name: Set up Python 3.11
uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 #v3.1.4
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c #v5.0.0
with:
python-version: 3.11
python-version-file: pyproject.toml
- name: Install poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install poetry env from pyproject.toml
run: poetry install
- name: Run tests
run: poetry run pytest src/tests --cov
- name: Check lint rules
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
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
run: poetry run flake8
- name: Check code style
run: poetry run black --check .
- name: Check type annotations
Expand Down
Loading

0 comments on commit ced6db1

Please sign in to comment.