Skip to content

Update package-lock.json. #1031

Update package-lock.json.

Update package-lock.json. #1031

Workflow file for this run

name: Python
on:
push:
workflow_dispatch:
env:
LINT_PYTHON_VERSION: 3.11
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Poetry
run: |
pipx install poetry
poetry config virtualenvs.path ~/.virtualenvs${{ env.LINT_PYTHON_VERSION }}
- name: Set up Python ${{ env.LINT_PYTHON_VERSION }}
uses: actions/setup-python@v3
with:
python-version: ${{ env.LINT_PYTHON_VERSION }}
cache: "poetry"
- name: Install dependencies
run: |
poetry install
- name: ruff check
run: poetry run ruff check .
- name: mypy check
run: poetry run mypy django_unicorn
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
django-version: ["4.1", "4.2", "5.0"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install Poetry
run: |
pipx install poetry
poetry config virtualenvs.path ~/.virtualenvs${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install dependencies
run: |
poetry env use ${{ matrix.python-version }}
poetry add django==${{ matrix.django-version }}
poetry install -E minify
- name: Fast tests
run: poetry run pytest -m 'not slow'
- name: Slow tests
run: poetry run pytest -m 'slow'