mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-16 01:21:20 +01:00
python -m runs module pytest as script - everything in path available
This commit is contained in:
3
.github/workflows/run_tests.yaml
vendored
3
.github/workflows/run_tests.yaml
vendored
@@ -42,8 +42,7 @@ jobs:
|
||||
|
||||
- name: Python unit tests with simulators
|
||||
working-directory: ${{github.workspace}}/build/bin
|
||||
#run: pytest -m withdetectorsimulators ${{github.workspace}}/python/tests --with-detector-simulators
|
||||
run: python -m pytest ${{github.workspace}}/python/tests
|
||||
run: python -m pytest -m withdetectorsimulators ${{github.workspace}}/python/tests --with-detector-simulators
|
||||
|
||||
- name: Simulator unit tests
|
||||
working-directory: ${{github.workspace}}/build/bin
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import slsdet
|
||||
from slsdet.bits import clearbit, clearbit_arr, setbit, setbit_arr
|
||||
import numpy as np
|
||||
|
||||
|
||||
Reference in New Issue
Block a user