-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1007 Bytes
/
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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
concurrency:
# Run everything on main, most-recent on PR builds
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dev-requirements
run: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install -r requirements-dev.txt --no-cache-dir
shell: bash
- name: Run CI
run: ./dev ci
shell: bash
- name: Publish docs
if: ${{github.ref == 'refs/heads/main'}}
uses: Cecilapp/[email protected]
env: { GITHUB_TOKEN: "${{ github.token }}" }
with:
build_dir: docs/build/html/