Skip to content

Commit

Permalink
Merge pull request #56 from ISISComputingGroup/49_periodic_test_again…
Browse files Browse the repository at this point in the history
…st_main

add action for checking every day against ophyd-async and bluesky main branches
  • Loading branch information
rerpha authored Nov 12, 2024
2 parents 93dfeb4 + a7ea2b8 commit efdc84c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-against-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: test-against-main
on:
schedule:
- cron: "0 0 * * *"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['3.11', "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
- name: install requirements
run: pip install -e .[dev]
- name: install latest bluesky and ophyd-async
run: pip install --upgrade --force-reinstall git+https://github.com/bluesky/bluesky.git@main git+https://github.com/bluesky/ophyd-async.git@main
- name: run ruff
run: python -m ruff --check
- name: run pyright
run: python -m pyright
- name: run pytest
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')
}}

0 comments on commit efdc84c

Please sign in to comment.