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 : Install pre-commit
62+ run : pip install pre-commit
63+
64+ - name : Run pre-commit
65+ run : pre-commit run --all-files
66+
67+ frontend-build :
68+ name : build frontend node 20
69+ runs-on : ubuntu-latest
70+ steps :
71+ - uses : actions/checkout@v4
72+
73+ - name : Set up Node.js 20
74+ uses : actions/setup-node@v4
75+ with :
76+ node-version : " 20"
77+
78+ - name : Install dependencies
79+ run : |
80+ cd server/frontend
81+ npm install
82+
83+ - name : Run tests
84+ run : |
85+ cd server/frontend
86+ npm run test
87+
88+ - name : Build production
89+ run : |
90+ cd server/frontend
91+ npm run production
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments