From c825533b8d522786d2cb5f20fa4bd9261911e98a Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Wed, 10 Jan 2024 08:16:29 +0000 Subject: [PATCH] Getting github workflows to use poetry --- .github/workflows/test.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aa7ea03..19a027a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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 @@ -42,4 +47,4 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Run pytest - run: poetry run pytest \ No newline at end of file + run: python -m poetry run pytest \ No newline at end of file