-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (67 loc) · 2.02 KB
/
Copy pathci.yml
File metadata and controls
72 lines (67 loc) · 2.02 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
# Dependency scan lives in .github/dependabot.yml (pip + github-actions, weekly).
name: ci
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.12"
- name: Install
run: |
python -m pip install --upgrade pip
pip install -e .
pip install ruff mypy pytest pytest-cov hypothesis types-PyYAML "moto[dynamodb,ses]" "boto3-stubs[dynamodb,ses,bedrock-runtime]"
- name: Lint
run: ruff check src tests
- name: Typecheck
run: mypy src
- name: Test
run: pytest -q --cov=openjobradar --cov-branch --cov-fail-under=85
infra:
runs-on: ubuntu-latest
defaults:
run:
working-directory: infra
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "22"
cache: npm
cache-dependency-path: infra/package-lock.json
- name: Install
run: npm ci
- name: Typecheck
run: npm run build
- name: Test
run: npm test
- name: Synth (no AWS credentials required; environment-agnostic template)
run: npm run synth
web:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "22"
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install
run: npm ci
- name: Typecheck
run: npx tsc --noEmit
- name: Test
run: npm test
- name: Build
run: npm run build