Skip to content

Commit

Permalink
Getting github workflows to use poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
stevej2608 committed Jan 10, 2024
1 parent 1084c5a commit c825533
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9]

defaults:
run:
shell: bash

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -24,12 +28,13 @@ jobs:

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Load poetry virtualenv
run: poetry config virtualenvs.in-project true
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true

- name: Install dependencies
run: poetry install --no-root
run: poetry install --no-interaction --no-root

- name: Install Flake8
run: pip install flake8
Expand All @@ -42,4 +47,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run pytest
run: poetry run pytest
run: python -m poetry run pytest

0 comments on commit c825533

Please sign in to comment.