-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (74 loc) · 2.24 KB
/
Copy pathci.yml
File metadata and controls
81 lines (74 loc) · 2.24 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
name: CI
on:
pull_request:
push:
branches: [main, "codex/**"]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
backend:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install -e ".[dev]"
- run: python -m ruff check rarelink tests scripts
- run: python -m pytest -q
web:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: apps/web/package-lock.json
- run: npm --prefix apps/web ci
- run: npm --prefix apps/web test
- run: npm --prefix apps/web run build
- run: npm --prefix apps/web audit --audit-level=high
dependency-and-release-contract:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- run: python -m pip install --upgrade pip pip-audit
- run: python -m pip install .
- run: python -m pip_audit . --strict --progress-spinner off
- run: python scripts/validate_release_engineering.py
build-production-images:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
file: deploy/Dockerfile.coordinator
platforms: linux/amd64,linux/arm64
push: false
cache-from: type=gha,scope=coordinator
cache-to: type=gha,mode=max,scope=coordinator
- uses: docker/build-push-action@v6
with:
context: .
file: deploy/Dockerfile.web.production
platforms: linux/amd64,linux/arm64
push: false
cache-from: type=gha,scope=web
cache-to: type=gha,mode=max,scope=web