File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ }}
You can’t perform that action at this time.
0 commit comments