Skip to content

Commit

Permalink
fix: use poetry install for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrosjean committed Oct 9, 2023
1 parent 134d222 commit 2b82c5a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/test.yml → .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Check

on:
pull_request:
Expand All @@ -25,17 +25,23 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Pytest
run: pip install pytest pytest-cov
- name: Install Poetry
run: |
pipx install poetry
poetry --version
- name: Install dependencies
run: |
poetry install
- name: Test with pytest
run: pytest --cov=$PACKAGE_DIR $TESTS_DIR
run: poetry run pytest --cov=$PACKAGE_DIR $TESTS_DIR

lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
Expand All @@ -55,7 +61,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 2b82c5a

Please sign in to comment.