Skip to content

Commit 75965f7

Browse files
committed
Move actions workflow to GitHub actions
This is something that's more standard and allows us to remove a lot of custom logic.
1 parent 7946258 commit 75965f7

2 files changed

Lines changed: 79 additions & 106 deletions

File tree

.github/workflows/ci.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
python-tests:
9+
name: tox
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python 3.12
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.12"
19+
20+
- name: Install tox
21+
run: pip install tox
22+
23+
- name: Run tests
24+
run: tox
25+
env:
26+
TOXENV: py312
27+
28+
linting:
29+
name: linting
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- name: Set up Python 3.12
35+
uses: actions/setup-python@v5
36+
with:
37+
python-version: "3.12"
38+
39+
- name: Set up Node.js 20
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: "20"
43+
44+
- name: Install frontend dependencies
45+
run: |
46+
cd server/frontend
47+
npm install
48+
49+
- name: Install pre-commit
50+
run: pip install pre-commit
51+
52+
- name: Run pre-commit
53+
run: pre-commit run --all-files
54+
55+
frontend-build:
56+
name: build frontend node 20
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@v4
60+
61+
- name: Set up Node.js 20
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: "20"
65+
66+
- name: Install dependencies
67+
run: |
68+
cd server/frontend
69+
npm install
70+
71+
- name: Run tests
72+
run: |
73+
cd server/frontend
74+
npm run test
75+
76+
- name: Build production
77+
run: |
78+
cd server/frontend
79+
npm run production

.taskcluster.yml

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)