Skip to content

Commit

Permalink
Better package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
earthpyy committed Oct 15, 2021
1 parent 8a9a5ae commit 4935960
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4935960

Please sign in to comment.