Skip to content

Commit fcfcefd

Browse files
committed
Fix pytest test report flag
1 parent 3872a99 commit fcfcefd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ epigeec/lib/*
3434
!epigeec/lib/.gitkeep
3535

3636
# Ignore auto-generated test files
37+
reports/
38+
.pytest_cache/
3739
epigeec/test/files/test.mat
3840
epigeec/test/test_list*.txt
3941
epigeec/test/files/hdf5/d9f18e91644bacfee3669d577b661d15

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ test = [
2929
"pytest",
3030
"pyBigWig",
3131
]
32+
dev = ["epigeec[test]"] # alias for test
3233

3334
[project.scripts]
3435
epigeec = "epigeec.python.core.main:cli"
@@ -72,7 +73,7 @@ skip = ["*-musllinux*", "*-manylinux_i686"] # ignore 32-bit Linux builds
7273
# 'CI_MATRIX_OS' is set in the GitHub Actions workflow to identify the OS in the report filename.
7374
test-command = [
7475
"pip install pytest pyBigWig pytest-json-ctrf",
75-
"pytest {project}/epigeec/test --ctrf-report=reports/ctrf-report-{env:CI_MATRIX_OS:local}-{build_id}.json",
76+
"pytest {project}/epigeec/test --ctrf=reports/ctrf-report-{env:CI_MATRIX_OS:local}-{build_id}.json",
7677
]
7778

7879
[tool.cibuildwheel.linux]

0 commit comments

Comments
 (0)