-
Notifications
You must be signed in to change notification settings - Fork 1
85 lines (64 loc) · 1.84 KB
/
Copy pathci.yml
File metadata and controls
85 lines (64 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
- push
- pull_request
env:
CI: 1
defaults:
run:
shell: bash
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up repo
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/ci-setup
with:
group: "lint"
- name: Run pre-commit
run: uv run pre-commit run --all-files --show-diff-on-failure
- name: Run mypy on Orchestrator
working-directory: orchestrator
run: uv run --package orchestrator mypy orchestrator
test:
runs-on: ubuntu-latest
steps:
- name: Set up repo
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/ci-setup
with:
group: "test"
- name: Set up Docker Compose
uses: docker/setup-compose-action@v1
- name: Build Dockerfile
working-directory: dev/docker
run: docker compose build
- name: Check migrations
working-directory: manager
run: uv run --package manager python manage.py makemigrations --check --noinput
- name: Migrate
working-directory: manager
run: uv run --package manager python manage.py migrate --noinput
- name: Run Tests on Manager
working-directory: manager
run: uv run --package manager pytest
- name: Run Tests on Orchestrator
working-directory: orchestrator
run: uv run --package orchestrator pytest
docs:
runs-on: ubuntu-latest
steps:
- name: Set up repo
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/ci-setup
with:
group: "docs"
- name: Install graphviz
run: sudo apt install graphviz
- name: Build Docs
working-directory: docs
run: uv run just html-strict