Skip to content

Imaging (#39)

Imaging (#39) #96

Workflow file for this run

name: tests
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events for master
push:
branches: [master]
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
debug_enabled:
description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)"
required: false
default: false
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python: [3.8, 3.9, "3.10", 3.11]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: "poetry"
- run: poetry install --no-interaction
- name: test
run: poetry run pytest --ignore=docs/tutorials/lqr_ctrl_ldsctrlest.ipynb --ignore=docs/tutorials/video_visualization.ipynb
# - name: Setup tmate session # for optional debugging
# uses: mxschmitt/action-tmate@v3
# if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}