Corrective implementation of implementation.md (containerized Django/Wagtail) #3
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@@ -1,11 +1,30 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Build
|
||||||
|
run: docker compose build
|
||||||
|
- name: Ruff
|
||||||
|
run: docker compose run --rm web ruff check .
|
||||||
|
|
||||||
|
typecheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Build
|
||||||
|
run: docker compose build
|
||||||
|
- name: Mypy
|
||||||
|
run: docker compose run --rm web mypy apps config
|
||||||
|
|
||||||
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -14,7 +33,3 @@ jobs:
|
|||||||
run: docker compose build
|
run: docker compose build
|
||||||
- name: Pytest
|
- name: Pytest
|
||||||
run: docker compose run --rm web pytest
|
run: docker compose run --rm web pytest
|
||||||
- name: Ruff
|
|
||||||
run: docker compose run --rm web ruff check .
|
|
||||||
- name: Mypy
|
|
||||||
run: docker compose run --rm web mypy apps config
|
|
||||||
|
|||||||
Reference in New Issue
Block a user