-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.1 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
49
name: CI
on: [push]
jobs:
lint:
name: Codestyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Stylua
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pandoc
uses: pandoc/actions/setup@v1
with:
version: 3.5
- name: Regenerate docs
shell: bash
run: |
./.panvimdoc/panvimdoc.sh
- name: Check that docs are up-to-date
run: git diff --exit-code -- doc/jupytext.txt
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
id: vim
with:
neovim: true
version: v0.10.2
- name: Install Jupytext
run: |
python -m pip install --upgrade pip
pip install jupytext
- name: Run test
shell: bash
run: |
./run_tests.sh