-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.06 KB
/
buildtest.yml
File metadata and controls
37 lines (35 loc) · 1.06 KB
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
name: Test
# Test starter project and notebooks
on:
push:
branches:
- master
schedule:
# run weekly
- cron: '0 10 * * 4'
# needed to trigger the workflow manually
workflow_dispatch:
pull_request:
jobs:
test:
name: Build and Test (${{ matrix.config.stormpyImg }})
runs-on: ubuntu-latest
strategy:
matrix:
config:
- {stormpyImg: "stable-debug"}
- {stormpyImg: "stable"}
- {stormpyImg: "ci-debug"}
- {stormpyImg: "ci"}
steps:
- name: Git clone
uses: actions/checkout@v6
- name: Build from Dockerfile
run: docker build -t stormchecker/stormpy-starter . --build-arg STORMPY_BASE=movesrwth/stormpy:${{ matrix.config.stormpyImg }}
- name: Run Docker
run: docker run -d -it --name ci -p 8888:8888 stormchecker/stormpy-starter
- name: Run tests
run: |
docker exec ci bash -c "pip install .[test]; pytest"
- name: Run notebook
run: docker exec ci bash -c "pip install papermill && papermill stormpy_starter.ipynb"