forked from key4hep/k4MarlinWrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.09 KB
/
doctest.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
name: doctest-linux
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SETUP: ['/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh']
PAGE: ['doc/starterkit/k4MarlinWrapperCLIC/Readme', ]
steps:
- uses: actions/checkout@v2
- uses: cvmfs-contrib/github-action-cvmfs@v2
- name: Start container
run: |
docker run -it --name CI_container -v ${GITHUB_WORKSPACE}:/Package -v /cvmfs:/cvmfs:shared -d ghcr.io/aidasoft/centos7:latest /bin/bash
- name: Compile
run: |
docker exec CI_container /bin/bash -c ' cd Package;/
source ${{ matrix.SETUP }};\
mkdir build; cd build;\
cmake .. ;\
make -j 2;\
'
- name: CheckPage
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;
source ${{ matrix.SETUP }};
source build/k4marlinwrapperenv.sh;
mkdir testdir;
cat .github/scripts/yamlheader.md ${{ matrix.PAGE }}.md > testdir/test.md;
cd testdir;
jupytext test.md -o test.ipynb --execute;
'