File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ concurrency :
10+ group : ci-${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ backend :
15+ name : Backend (Python ${{ matrix.python-version }})
16+ runs-on : ubuntu-latest
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ python-version : ["3.10", "3.12"]
21+ steps :
22+ - uses : actions/checkout@v4
23+
24+ - name : Set up Python ${{ matrix.python-version }}
25+ uses : actions/setup-python@v5
26+ with :
27+ python-version : ${{ matrix.python-version }}
28+ cache : pip
29+
30+ - name : Install project
31+ run : |
32+ python -m pip install --upgrade pip
33+ pip install -e ".[dev]"
34+
35+ # tests/test_acm_processing.py requires `monsees_retarget`, a lab-private
36+ # dependency not on PyPI. Skipped in CI; run locally with the package
37+ # installed or MONSEES_RETARGET set.
38+ - name : Run pytest
39+ run : pytest --ignore=tests/test_acm_processing.py -v
40+
41+ frontend :
42+ name : Frontend (Node ${{ matrix.node-version }})
43+ runs-on : ubuntu-latest
44+ strategy :
45+ fail-fast : false
46+ matrix :
47+ node-version : ["20"]
48+ defaults :
49+ run :
50+ working-directory : frontend
51+ steps :
52+ - uses : actions/checkout@v4
53+
54+ - name : Set up Node ${{ matrix.node-version }}
55+ uses : actions/setup-node@v4
56+ with :
57+ node-version : ${{ matrix.node-version }}
58+ cache : npm
59+ cache-dependency-path : frontend/package-lock.json
60+
61+ - name : Install dependencies
62+ run : npm ci
63+
64+ - name : Typecheck and build
65+ run : npm run build
You can’t perform that action at this time.
0 commit comments