Update README.md #1163
Workflow file for this run
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: Ubuntu unit tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- '**' | |
jobs: | |
build-and-test: | |
name: unit-ubuntu | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
strategy: | |
matrix: | |
# All Python versions except latest, which is tested by coverage. | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: setup.py | |
- name: Install dependencies | |
run: | | |
sudo .github/workflows/install-ubuntu-dependencies.sh | |
- 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 | |