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+ pull_request :
6+
7+ jobs :
8+ python-tests :
9+ name : ${{ matrix.name }}
10+ runs-on : ubuntu-latest
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ include :
15+ - name : tests python 3.10 django 4.x
16+ python-version : " 3.10"
17+ toxenv : py310
18+ - name : tests python 3.11 django 4.x
19+ python-version : " 3.11"
20+ toxenv : py311
21+ - name : tests python 3.12 (no django)
22+ python-version : " 3.12"
23+ toxenv : py312
24+ steps :
25+ - uses : actions/checkout@v4
26+
27+ - name : Set up Python ${{ matrix.python-version }}
28+ uses : actions/setup-python@v5
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+
32+ - name : Install tox
33+ run : pip install tox
34+
35+ - name : Run tests
36+ run : tox
37+ env :
38+ TOXENV : ${{ matrix.toxenv }}
39+
40+ linting :
41+ name : linting
42+ runs-on : ubuntu-latest
43+ steps :
44+ - uses : actions/checkout@v4
45+
46+ - name : Set up Python 3.9
47+ uses : actions/setup-python@v5
48+ with :
49+ python-version : " 3.9"
50+
51+ - name : Set up Node.js 20
52+ uses : actions/setup-node@v4
53+ with :
54+ node-version : " 20"
55+
56+ - name : Install frontend dependencies
57+ run : |
58+ cd server/frontend
59+ npm install
60+
61+ - name : Run pre-commit
62+ uses : pre-commit/action@v3.0.1
63+
64+ frontend-build :
65+ name : build frontend node 20
66+ runs-on : ubuntu-latest
67+ steps :
68+ - uses : actions/checkout@v4
69+
70+ - name : Set up Node.js 20
71+ uses : actions/setup-node@v4
72+ with :
73+ node-version : " 20"
74+
75+ - name : Install dependencies
76+ run : |
77+ cd server/frontend
78+ npm install
79+
80+ - name : Run tests
81+ run : |
82+ cd server/frontend
83+ npm run test
84+
85+ - name : Build production
86+ run : |
87+ cd server/frontend
88+ npm run production
You can’t perform that action at this time.
0 commit comments