-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (39 loc) · 1.04 KB
/
premerge.yaml
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
name: premerge
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
# Install pre-commit dependencies
- name: Install pre-commit
run: pip install pre-commit==3.8.0 jupyter==1.1.1
# Run pre-commit hooks with verbose logging
- name: Run pre-commit
run: pre-commit run --all-files --verbose
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
- uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Install pre-commit
run: pip install jupyter==1.1.1
- name: Build
run: bash -ec "(cd ci; go install ./...)"
- name: Check go format
run: bash -ec "(cd ci; go fmt ./... ; git diff --exit-code)"
- name: Test
run: bash -ec "(cd ci; go test -v ./...)"
- name: Build templates
run: bash build.sh