-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (43 loc) · 1.23 KB
/
test.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
50
51
# SPDX-License-Identifier: MPL-2.0
#
# This file is part of Ramses Composer
# (see https://github.com/bmwcarit/ramses-composer-docs).
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
# If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
name: Test
# Only pushes and PRs against the master branch are built
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: 'true'
- name: Install pip packages
shell: bash
run: |
set -e
python3 -m pip install -r doc/requirements.txt
- name: Test that archive can be created
shell: bash
run: |
set -e
python3 .github/package.py ${{runner.workspace}}/tutorials
test -e ${{runner.workspace}}/tutorials.zip
- name: Test that docs can be built without errors
shell: bash
run: |
set -e
bash build_docs.sh -v 0.0.1
test -e build/index.html
- name: Test that docs contain no broken links
shell: bash
run: |
set -e
bash build_docs.sh -v 0.0.1 -l