Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ jobs:
with:
python-version: "3.11"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
run: pipx install poetry
- name: Load cached venv
id: cached-pip-wheels
uses: actions/cache@v4
Expand All @@ -35,14 +32,8 @@ jobs:
- name: Install library
run: poetry install --no-interaction
- name: Run tests
run: |
source $VENV
pytest
run: poetry run pytest
- name: Lint
run: |
source $VENV
flake8 . || echo "Linting errors found, but we're treating this as a warning."
run: poetry run flake8 . || echo "Linting errors found, but we're treating this as a warning."
- name: Format
run: |
source $VENV
black . --check || echo "Formatting errors found, but we're treating this as a warning."
run: poetry run black . --check || echo "Formatting errors found, but we're treating this as a warning."
Loading