-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (58 loc) · 1.57 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
detect-ci-trigger:
name: "Detect CI Trigger: [skip-ci]"
runs-on: ubuntu-latest
outputs:
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: keewis/ci-trigger@v1
id: detect-trigger
with:
keyword: "[skip-ci]"
tests:
name: Tests
runs-on: ubuntu-latest
needs: detect-ci-trigger
if: needs.detect-ci-trigger.outputs.triggered == 'false'
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup emacs
uses: purcell/setup-emacs@master
with:
version: 26.1
- name: install dependencies
run: echo "y" | emacs -batch -Q -l ci/requirements.el
- name: run tests
run: |
emacs -batch -Q \
-l package -f package-initialize \
-L lisp \
-l buttercup -f buttercup-run-discover
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: upgrade pip
run: python -m pip install -U pip setuptools
- name: install sphinx
run: python -m pip install sphinx sphinx_rtd_theme
- name: build
run: |
cd doc
python -m sphinx -M html -d _build/doctrees -Ea -WT --keep-going -n . _build/html