-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (45 loc) · 1.29 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
52
53
54
55
56
57
name: Test
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
PYTHON_VERSION: '3.11'
POETRY_VERSION: '1.8.3'
jobs:
test:
runs-on: ubuntu-22.04
container:
image: movesrwth/stormpy:ci-debug
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update
apt-get -y install curl
apt-get -y install git
- name: Configure Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load existing venv
run: poetry env use /opt/venv/bin/python
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest -vv
- name: Glob notebooks in docs folder
uses: tj-actions/glob@v22
id: glob
with:
files: |
docs/**/*.ipynb
# - name: Run documentation notebooks
# run: |
# poetry run jupyter nbconvert --execute --to notebook --inplace ${{ steps.glob.outputs.paths }}