Skip to content

Initial release of pytest-testcontainers-django #1

Initial release of pytest-testcontainers-django

Initial release of pytest-testcontainers-django #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
- name: Install dependencies
run: |
uv venv --python "$PYVER"
uv pip install -e '.[dev]'
env:
PYVER: ${{ matrix.python-version }}
- name: Lint
run: |
source .venv/bin/activate
ruff check src tests
ruff format --check src tests
- name: Run unit tests
env:
PYTEST_TESTCONTAINERS_DISABLE: "1"
PYTEST_TESTCONTAINERS: "0"
run: |
source .venv/bin/activate
pytest -v