Skip to content

Migrate to ophyd-async v0.15 (breaking changes for user-defined devices) #1079

Migrate to ophyd-async v0.15 (breaking changes for user-defined devices)

Migrate to ophyd-async v0.15 (breaking changes for user-defined devices) #1079

Workflow file for this run

name: Lint-and-test
on: [pull_request, workflow_call]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest" ]
version: ['3.11', '3.12', '3.13']
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.version }}
- name: install requirements
run: pip install -e .[dev]
- name: run ruff check
run: python -m ruff check
- name: run ruff format
run: python -m ruff format --check
- name: run pyright
run: python -m pyright
- name: run pytest
env:
MPLBACKEND: agg
run: python -m pytest
results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [tests]
steps:
- run: exit 1
# see https://stackoverflow.com/a/67532120/4907315
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}