Skip to content

Commit ce1ae3d

Browse files
committed
Drop hatch for tests
Does not work with CI matrix...
1 parent 1899716 commit ce1ae3d

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
3232
- name: Test with pytest
3333
run: |
34-
python -m hatch run tests:run
34+
python -m pytest
3535
3636
- name: Upload coverage to Codecov
3737
uses: codecov/codecov-action@v5

pyproject.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ Homepage = "https://www.quantuminfo.physik.rwth-aachen.de/cms/Quantuminfo/Forsch
7070
[tool.hatch.version]
7171
path = "filter_functions/__init__.py"
7272

73-
[tool.hatch.envs.tests]
74-
features = ["tests"]
75-
[tool.hatch.envs.tests.scripts]
76-
run = ["python -m pytest"]
77-
7873
[tool.hatch.envs.doc]
7974
features = [
8075
"doc",
@@ -86,17 +81,13 @@ build = [
8681

8782
[tool.pytest.ini_options]
8883
minversion = "4.6"
89-
addopts = """
90-
-ra --verbose \
91-
--cov=filter_functions --cov-report=xml --cov-append \
92-
--junitxml=junit.xml -o junit_family=legacy"""
84+
addopts = "-ra --verbose --cov=filter_functions --cov-report=xml --junitxml=junit.xml -o junit_family=legacy"
9385
testpaths = [
9486
"tests"
9587
]
9688

9789
[tool.coverage.run]
9890
branch = true
99-
parallel = true # each job creates a unique .coverage file, all of which are then combined by --cov-append
10091
omit = ["tests/*", "*/__init__.py"]
10192

10293
[tool.pylint.'MESSAGES CONTROL']

tests/test_plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
reason='Skipping plotting tests for build without matplotlib')
4040
if plotting is not None:
4141
import matplotlib.pyplot as plt
42-
from matplotlib import cycler
42+
from cycler import cycler
4343

4444
simple_pulse = testutil.rand_pulse_sequence(2, 1, 1, 1, btype='Pauli')
4545
complicated_pulse = testutil.rand_pulse_sequence(2, 100, 3, 3)

0 commit comments

Comments
 (0)