Skip to content

Commit efdc84c

Browse files
authored
Merge pull request #56 from ISISComputingGroup/49_periodic_test_against_main
add action for checking every day against ophyd-async and bluesky main branches
2 parents 93dfeb4 + a7ea2b8 commit efdc84c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: test-against-main
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
version: ['3.11', "3.12"]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: ${{ matrix.version }}
16+
- name: install requirements
17+
run: pip install -e .[dev]
18+
- name: install latest bluesky and ophyd-async
19+
run: pip install --upgrade --force-reinstall git+https://github.com/bluesky/bluesky.git@main git+https://github.com/bluesky/ophyd-async.git@main
20+
- name: run ruff
21+
run: python -m ruff --check
22+
- name: run pyright
23+
run: python -m pyright
24+
- name: run pytest
25+
run: python -m pytest
26+
results:
27+
if: ${{ always() }}
28+
runs-on: ubuntu-latest
29+
name: Final Results
30+
needs: [tests]
31+
steps:
32+
- run: exit 1
33+
# see https://stackoverflow.com/a/67532120/4907315
34+
if: >-
35+
${{
36+
contains(needs.*.result, 'failure')
37+
|| contains(needs.*.result, 'cancelled')
38+
}}

0 commit comments

Comments
 (0)