-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (52 loc) · 1.6 KB
/
ci.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
name: CI
on:
# workflow_dispatch:
pull_request:
push:
branches:
- main
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
syntax_tests:
name: Syntax tests
runs-on: "ubuntu-latest"
timeout-minutes: 10
if: "! startsWith(github.event.pull_request.title, 'Scope names:')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: docker/setup-buildx-action@v2
- name: Build and cache syntest
# though the cache is evicted after 7 days
uses: docker/build-push-action@v3
with:
context: .
file: ./tests/docker/syntest.dockerfile
tags: syntest
cache-from: type=gha,scope=main
cache-to: type=gha,scope=main,mode=max
load: true
- name: Run syntax tests
run: tests/syntax.py
highlight_regression_tests:
name: Highlight regression tests
runs-on: "ubuntu-latest"
timeout-minutes: 10
if: "! startsWith(github.event.pull_request.title, 'Scope names:')"
steps:
- uses: actions/checkout@v3
- name: Run highlight regression tests
run: tests/highlight_regression.sh
theme_regression_tests:
name: Theme regression tests
runs-on: "ubuntu-latest"
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Run theme regression tests
run: tests/theme_regression.sh