Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing framework #160

Merged
merged 15 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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"]

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/Ulm-IQO/qudi-core.git
cd qudi-core
python -m pip install --upgrade pip
pip install -e ".[dev-test]"
cd ../qudi-iqo-modules

- name: Install dependencies iqo modules
run: |
pip install -e ".[dev-test]"
- name: Test with pytest
run: |
pytest -s

79 changes: 78 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,83 @@
[build-system]
requires = [
"setuptools>=42",
"setuptools>=61.0",
"setuptools-scm>=8.0",
"wheel"
]
build-backend = "setuptools.build_meta"

[project]
name = "qudi-iqo-modules"
description = "IQO measurement modules collection for qudi"
dynamic = ["version"]
readme = "README.md"
keywords = [
'qudi',
'diamond',
'quantum',
'confocal',
'experiment',
'lab',
'laboratory',
'instrumentation',
'instrument',
'modular',
'measurement',
]
license = { text = "LGPLv3" }
classifiers = [
'Development Status :: 5 - Production/Stable',

'Environment :: Win32 (MS Windows)',
'Environment :: X11 Applications',
'Environment :: MacOS X',

'Intended Audience :: Science/Research',
'Intended Audience :: End Users/Desktop',

'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',

'Natural Language :: English',

'Operating System :: Microsoft :: Windows :: Windows 8',
'Operating System :: Microsoft :: Windows :: Windows 8.1',
'Operating System :: Microsoft :: Windows :: Windows 10',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',

'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',

'Topic :: Scientific/Engineering',
'Topic :: Software Development :: User Interfaces',
]
requires-python = ">=3.8, <3.11"
dependencies = [
'qudi-core>=1.5.0',
'entrypoints>=0.4',
'fysom>=2.1.6',
'lmfit>=1.0.3',
'lxml>=4.9.1',
'matplotlib>=3.6.0',
'nidaqmx>=0.5.7',
'numpy>=1.23.3',
'pyqtgraph>=0.13.1',
'PySide2',
'PyVisa>=1.12.0',
'scipy>=1.9.1',
'zaber_motion>=2.14.6',
]


[tool.setuptools.package-data]
"qudi" = ["default.cfg"]
"qudi.gui" = ["*.ui", "*/*.ui"]


[project.optional-dependencies]
dev-test = ["pytest", "pytest-qt", "coverage"]

[tool.setuptools.dynamic]
version = {file = "VERSION"}
103 changes: 0 additions & 103 deletions setup.py

This file was deleted.

10 changes: 10 additions & 0 deletions tests/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
branch = True
parallel = True
source = ../
timid = True

[report]
show_missing = True


Loading