-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (43 loc) · 1.02 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
name: CI
on:
# allows us to run workflows manually
workflow_dispatch:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master
env:
OMP_NUM_THREADS: 2
QT_QPA_PLATFORM: offscreen
jobs:
ci:
runs-on: ubuntu-latest
container: openmc/openmc:develop
env:
DISPLAY: ':99.0'
steps:
-
name: Apt dependencies
shell: bash
run: |
apt update
apt install -y libglu1-mesa libglib2.0-0 libfontconfig1 libegl-dev libxkbcommon-x11-0 xvfb libdbus-1-3
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
-
uses: actions/checkout@v2
-
name: Install
shell: bash
run: |
cd ${GITHUB_WORKSPACE}
pip install .[test]
-
name: Test
shell: bash
run: |
cd ${GITHUB_WORKSPACE}
pytest -v tests