Skip to content

Wait for async staging in stage_wrapper #5

Wait for async staging in stage_wrapper

Wait for async staging in stage_wrapper #5

Workflow file for this run

name: Unit Tests
on:
push:
pull_request:
schedule:
- cron: '00 4 * * *' # daily at 4AM
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
ophyd-version: ["master", "latest"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install
shell: bash -l {0}
run: source continuous_integration/scripts/install.sh
- name: Install test requirements
shell: bash -l {0}
run: |
set -vxeuo pipefail
python -m pip install -r requirements-dev.txt
python -m pip list
- name: Install ophyd mater for some builds.
if: ${{ matrix.ophyd-version == 'master' }}
shell: bash -l {0}
run: |
set -vxeuo pipefail
python -m pip install git+https://github.com/bluesky/ophyd.git@master
python -m pip list
- name: Install pyqt6 on some versions
if: ${{ matrix.python-version == '3.10' }}
shell: bash -l {0}
run: |
set -vxeuo pipefail
python -m pip install pyqt6
python -m pip list
- name: Ensure that callbacks import without matplotlib
shell: bash -l {0}
run: |
# This is a one-off test that needs to run in its own process.
set -vxeuo pipefail
python -c 'import sys, bluesky.callbacks; assert "matplotlib" not in sys.modules'
- name: Test with pytest
shell: bash -l {0}
run: |
# make sure the sqlite file exists to avoid race conditions
set -vxeuo pipefail
python -c "from bluesky.utils import get_history; get_history()"
coverage run -m pytest -v
coverage report