Support different reset modes during import #98
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: | |
branches: [main] | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
django-version: ["3.2", "4.0", "4.1"] | |
exclude: | |
# Python 3.11 is not supported until Django 4.1 | |
- python-version: "3.11" | |
django-version: "3.2" | |
- python-version: "3.11" | |
django-version: "4.0" | |
services: | |
postgres: | |
image: postgres:12 | |
env: | |
POSTGRES_USER: test-pg-user | |
POSTGRES_PASSWORD: test-pg-pass | |
POSTGRES_DB: devdatatestdb | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
POSTGRES_USER: test-pg-user | |
POSTGRES_PASSWORD: test-pg-pass | |
POSTGRES_HOST: localhost | |
POSTGRES_PORT: 5432 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.3.2 | |
- name: Set up dependencies | |
run: poetry install | |
- name: Test | |
run: poetry run tox | |
env: | |
django-version: ${{ matrix.django-version }} | |
lint: | |
name: Lint | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Set up Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.3.2 | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Lint | |
run: | | |
poetry run flake8 . --jobs=auto --format=github |