Bump django from 4.1.6 to 4.1.10 #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
env: | |
PYTHON_VERSION: "3.10" | |
DJANGO_SETTINGS_MODULE: tests.settings | |
jobs: | |
linters: | |
name: "${{ matrix.linter }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
linter: ["isort", "black", "mypy", "flake8"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup project | |
uses: ./.github/actions/setup-project | |
- name: Add problem matcher | |
run: echo "::add-matcher::.github/${{ matrix.linter }}-problem-matcher.json" | |
- name: Run ${{ matrix.linter }} | |
run: poetry run make ${{ matrix.linter }} | |
pytest: | |
name: "pytest (django: ${{ matrix.django-version }})" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
django-version: ["3.2", "4.0", "4.1", "4.2"] | |
services: | |
postgres: | |
image: bitnami/postgresql:15 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRESQL_DATABASE: test | |
POSTGRESQL_USERNAME: test | |
POSTGRESQL_PASSWORD: test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup project | |
uses: ./.github/actions/setup-project | |
- name: Install django | |
run: poetry run pip install "django==${{ matrix.django-version }}.*" | |
- name: Run pytest | |
run: poetry run pytest -v | |
env: | |
PGHOST: localhost | |
PGDATABASE: test | |
PGUSER: test | |
PGPASSWORD: test |