From 2b82c5a8e622ef9d4010c426151b50bf70c5a6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Grosjean?= Date: Mon, 9 Oct 2023 09:44:07 +0200 Subject: [PATCH] fix: use poetry install for pytest --- .github/workflows/{test.yml => check.yml} | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) rename .github/workflows/{test.yml => check.yml} (79%) diff --git a/.github/workflows/test.yml b/.github/workflows/check.yml similarity index 79% rename from .github/workflows/test.yml rename to .github/workflows/check.yml index 11bcd49..4c396b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/check.yml @@ -1,4 +1,4 @@ -name: Test +name: Check on: pull_request: @@ -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 @@ -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