Corrective implementation of implementation.md (containerized Django/Wagtail) #3
43
.github/workflows/ci.yml
vendored
43
.github/workflows/ci.yml
vendored
@@ -3,33 +3,52 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: actions/setup-python@v5
|
||||||
- name: Build
|
with:
|
||||||
run: docker compose build
|
python-version: "3.12"
|
||||||
|
- uses: astral-sh/setup-uv@v4
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Install dependencies
|
||||||
|
run: uv pip install --system -r requirements/base.txt
|
||||||
- name: Ruff
|
- name: Ruff
|
||||||
run: docker compose run --rm web ruff check .
|
run: ruff check .
|
||||||
|
|
||||||
typecheck:
|
typecheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: actions/setup-python@v5
|
||||||
- name: Build
|
with:
|
||||||
run: docker compose build
|
python-version: "3.12"
|
||||||
|
- uses: astral-sh/setup-uv@v4
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Install dependencies
|
||||||
|
run: uv pip install --system -r requirements/base.txt
|
||||||
- name: Mypy
|
- name: Mypy
|
||||||
run: docker compose run --rm web mypy apps config
|
run: mypy apps config
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: actions/setup-python@v5
|
||||||
- name: Build
|
with:
|
||||||
run: docker compose build
|
python-version: "3.12"
|
||||||
|
- uses: astral-sh/setup-uv@v4
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Install dependencies
|
||||||
|
run: uv pip install --system -r requirements/base.txt
|
||||||
- name: Pytest
|
- name: Pytest
|
||||||
run: docker compose run --rm web pytest
|
run: pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user