run qcodes.pytest() #12142
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run qcodes.pytest() | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'release/*' | |
tags: | |
- 'v*' | |
pull_request: | |
merge_group: | |
branches: ['master'] | |
jobs: | |
pytestnonlocal: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
with: | |
submodules: true | |
# we need full history with tags for the version number | |
fetch-depth: '0' | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4.3.1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: | | |
pyproject.toml | |
requirements.txt | |
- name: upgrade pip setuptools wheel | |
run: python -m pip install --upgrade pip setuptools wheel | |
shell: bash | |
- name: install qcodes | |
run: | | |
pip install .[test] -c requirements.txt | |
- name: Test with pytest | |
run: | | |
cd .. | |
mkdir empty | |
cd empty | |
cp ../Qcodes/pyproject.toml . | |
python -c "import sys; import qcodes; ec = qcodes.test(); sys.exit(ec)" |