Merge pull request #1109 from myokit/heka-again #1328
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8', '3.13'] | |
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 | |