Skip to content

Testing framework

Testing framework #3

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Testing
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
numpy-version: ['1.24.4', '2.0.0']
exclude:
- python-version: '3.8'
numpy-version: '2.0.0'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Checkout qudi core
run: |
cd ..
git clone https://github.com/prithviulm/qudi-core.git
cd qudi-core
python -m pip install --upgrade pip
pip install -e ".[dev-test]"
git checkout application_test
qudi-install-kernel
cd ../qudi-iqo-modules
- name: Install dependencies for iqo modules
run: |
pip install -e ".[dev-test]"
- name: Install different versions of numpy
run: pip install numpy==${{ matrix.numpy-version }}
- name: Test with pytest
run: |
pytest -s