Tests #61
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: Tests | |
on: | |
push: | |
branches: [ "main", "b*" ] | |
pull_request: | |
branches: [ "main", "b*" ] | |
schedule: | |
- cron: "0 16 * * 4" # Every Thursday at 16 UTC (17 CET/18 CEST) | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Which branch to test' | |
required: false | |
default: 'main' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: '${{ github.event.inputs.branch }}' | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade pip | |
run: | | |
python3 -m pip install --upgrade pip | |
- name: Install using flags | |
run: | | |
python3 -m pip install -v --only-binary=:all: .[ipympl,plotly,bokeh,k3d,qt,test] | |
- name: Test with pytest | |
run: | | |
pytest |