Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
26 changes: 11 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,20 @@ jobs:
strategy:
fail-fast: false
matrix:
python-package-combination:
python-version: ['3.8', '3.9', '3.10']
numpy-version: ['1.24.4', '2.0.0']
exclude:
- python-version: '3.8'
packages: 'numpy==1.24.4'
- python-version: '3.9'
packages: 'numpy==1.24.4'
- python-version: '3.9'
packages: 'numpy==2.0.0'
- python-version: '3.10'
packages: 'numpy==1.24.4'
- python-version: '3.10'
packages: 'numpy==2.0.0'
numpy-version: '2.0.0'



steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-package-combination.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-package-combination.python-version }}
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install dependencies
Expand All @@ -50,15 +46,15 @@ jobs:
cd qudi-iqo-modules
pip install -e ".[dev-test]"
cd ../qudi-core
- name: Test different version of numpy
run: pip install ${{ matrix.python-package-combination.packages }}
- name: Test different version of numpy
run: pip install numpy==${{ matrix.numpy-version }}
- name: Test with pytest
run: |
pytest --ignore=tests/fit_methods -s
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report ${{ matrix.python-package-combination.python-version }} , ${{ matrix.python-package-combination.packages }}
name: code-coverage-report ${{ matrix.python-version }} , ${{ matrix.numpy-version }}
path: coverage
retention-days: 5
- name: Download all workflow run artifacts
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you specify a minimum version for these packages?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually why do we need opencv-python-headless?

Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ dependencies = [
"ruamel.yaml>=0.17.16",
"scipy>=1.7.1",
"jsonschema>=4.2.1",
"opencv-python-headless"
]

[tool.setuptools.packages.find]
Expand Down
2 changes: 1 addition & 1 deletion src/qudi/core/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,4 +418,4 @@ def _tray_module_action_changed(self, base, module_name, state):
module_inst = mod_manager[module_name].instance
except KeyError:
return
self.system_tray_icon.add_action(module_name, module_inst.show)
self.system_tray_icon.add_action(module_name, module_inst.show)
Loading