-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 1.05 KB
/
ci.yml
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
Test:
runs-on: ubuntu-latest
services:
graphviz:
image: ghcr.io/ikalnytskyi/dot:latest
options: --name graphviz --interactive
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Set up dependencies
run: |
sudo apt install inkscape
cat << EOF > /usr/local/bin/dot
#!/bin/sh
exec /usr/bin/docker exec --interactive graphviz /usr/bin/dot $@
EOF
chmod +x /usr/local/bin/dot
python -m pip install --upgrade pip
python -m pip install --requirement requirements.txt
- uses: mxschmitt/action-tmate@v3
- name: Run Holocron
run: holocron run compile
- name: Test
run:
grep "svg" _site/posts/on-tmux-osc52-support/index.html