47 lines (39 loc) · 1.09 KB
/
unit-tests-windows.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
name: Windows unit tests
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- '**'
jobs:
build-and-test:
name: unit-win
runs-on: windows-latest
if: github.event.pull_request.draft == false
strategy:
matrix:
# Selected python versions only
python-version: ['3.7', '3.11']
steps:
- uses: actions/checkout@v4
- name: Configure Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: setup.py
- name: Install Myokit
run: |
python --version
python -m pip install --upgrade pip setuptools wheel
python -m pip install .[optional]
python .github/workflows/select-opencl-device.py
- name: Show Myokit info
run: |
python -m myokit system
python -m myokit opencl
- name: Run unit tests
run: |
python -m myokit test unit