From 4935960cfd800f257a80f875fc21f8802f659d7c Mon Sep 17 00:00:00 2001 From: Preeti Yuankrathok Date: Fri, 15 Oct 2021 16:46:12 +0700 Subject: [PATCH] Better package installation --- .github/workflows/ci.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 82d76e3..30bc68d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -66,9 +66,14 @@ jobs: poetry-version: "1.1.11" - name: Install dependencies run: | - poetry add -n --lock django@^${{ matrix.django }}.0 - poetry add -n --lock djangorestframework@^${{ matrix.django-rest }}.0 poetry install -n + poetry run pip install --no-input django~=${{ matrix.django }}.0 + poetry run pip install --no-input djangorestframework~=${{ matrix.django-rest }}.0 + - name: Verify package versions + run: | + python -V + poetry show django + poetry show djangorestframework - name: Test with pytest env: DJANGO_SETTINGS_MODULE: tests.settings