-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (53 loc) · 1.89 KB
/
linux.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
52
53
54
55
56
57
58
59
60
# pipenv and pytest execution inspired by
# https://github.com/okeeffed/hello-pytest-github-actions/
name: Ubuntu
on:
push:
branches: [develop]
pull_request:
branches: [develop]
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Install build tools
run: sudo apt-get update && sudo apt-get install cmake ninja-build
- name: Install latest release of llvm (includes clang)
run: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 14 all && sudo ln -s /usr/bin/llvm-nm-14 /usr/bin/llvm-nm && sudo apt list --installed | grep llvm
- name: Check out repository code
uses: actions/checkout@v2
- name: Install graphviz, plantuml and umlet
run: |
sudo apt-get -y install plantuml
which plantuml
sudo apt-get -y install graphviz
set GRAPHVIZ_DOT=$(which dot)
sudo apt-get -y install umlet
which umlet
# Setup Python (faster than using Python container)
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
- name: Install dependencies
run: |
pipenv install --deploy --dev
- name: Run test suite
run: |
pipenv run python -m pytest --verbose --capture=tee-sys
- name: Build package
run: |
pipenv run python -m build
- name: Create documentation
run: |
pipenv run make --directory doc html
- name: Publish documentation
if: github.ref == 'refs/heads/develop'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: doc/build/html # The folder the action should deploy.