Skip to content

Bump rollup from 2.45.0 to 3.29.5 #1034

Bump rollup from 2.45.0 to 3.29.5

Bump rollup from 2.45.0 to 3.29.5 #1034

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'