forked from sampsyo/bril
-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (70 loc) · 2.12 KB
/
build.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
cache-dependency-path: bril-txt/pyproject.toml
- name: TypeScript check
run: deno check brili.ts brilck.ts ts2bril.ts
- name: Install all TypeScript tools
run: deno install brili.ts ; deno install brilck.ts ; deno install --allow-env --allow-read ts2bril.ts
- name: Install Flit
run: pip install flit
- name: Install Python tools
run: cd bril-txt ; flit install --symlink
- name: Install Turnt
# run: pip install turnt # Use instead if pip turnt version >= 1.7
uses: actions/checkout@v4
with:
repository: cucapra/turnt
path: './turnt'
- name: Install Turnt part 2
run: cd turnt ; flit install --symlink
- name: Problem matcher
run: echo '::add-matcher::.github/tap-matcher.json'
- name: Tests
run: PATH=$PATH:`yarn global bin` make test TURNTARGS=-v
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
cache-dependency-path: bril-txt/pyproject.toml
- name: Install brilck
run: deno install brilck.ts
- name: Install Flit
run: pip install flit
- name: Install Python tools
run: cd bril-txt ; flit install --symlink
- name: Problem matcher
run: echo '::add-matcher::.github/brilck-matcher.json'
- name: brilck
run: PATH=$PATH:`yarn global bin` make check
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: TrueBrain/actions-flake8@master
with:
path: bril-txt