Update actions/checkout to v4 for latest NodeJS #34
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: Check | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
django-version: ["3.2", "4.0", "4.1"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Poetry | |
run: pipx install poetry==1.3.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: Set up dependencies | |
run: | | |
poetry install | |
poetry run pip install "django~=${{ matrix.django-version }}.0" | |
- name: Run tests | |
run: poetry run ./runtests | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.11"] | |
django-version: ["3.2", "4.1"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Poetry | |
run: pipx install poetry==1.3.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: Set up dependencies | |
run: | | |
poetry install | |
poetry run pip install "django~=${{ matrix.django-version }}.0" | |
- name: Run linters | |
run: poetry run flake8 --jobs=auto --format=github | |
type-check: | |
name: Type Check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.11"] | |
django-version: ["3.2", "4.1"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Poetry | |
run: pipx install poetry==1.3.2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
- name: Set up dependencies | |
run: | | |
poetry install | |
poetry run pip install "django~=${{ matrix.django-version }}.0" | |
- name: Run type checking | |
run: poetry run ./script/type-check |