Skip to content

Commit 201ef82

Browse files
committed
Fix path to AddData
1 parent fcdd2cf commit 201ef82

3 files changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
include:
2424
- os: ubuntu-24.04
2525
python-version: "3.10"
26-
- os: ubuntu-24.04
27-
python-version: "3.13"
28-
- os: macos-15
29-
python-version: "3.13"
30-
- os: windows-2025
31-
python-version: "3.13"
26+
# - os: ubuntu-24.04
27+
# python-version: "3.13"
28+
# - os: macos-15
29+
# python-version: "3.13"
30+
# - os: windows-2025
31+
# python-version: "3.13"
3232

3333
steps:
3434
- uses: actions/checkout@v5
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: run Python tests
4747
run: |
48-
tox -e tests-sim2,tests-adddata,tests-nodata
48+
tox -e tests
4949
coverage xml
5050
5151
- name: upload to codecov.io

tests/test_AddData.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def setup_class(cls):
3232

3333
if os.path.isfile(os.path.join(DatabankLib.NMLDB_DATA_PATH, ".notest")):
3434
pytest.exit("Test are corrupted. I see '.notest' file in the data folder.")
35-
cls.exe = os.path.join(DatabankLib.NMLDB_ROOT_PATH, "Scripts", "BuildDatabank", "AddData.py")
35+
cls.exe = os.path.join(DatabankLib.NMLDB_ROOT_PATH,"src","DatabankLib", "bin", "add_simulation.py")
3636
cls.out_dir = DatabankLib.NMLDB_SIMU_PATH
3737
os.mkdir(cls.out_dir)
3838

tox.ini

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ envlist =
66
lint
77
build
88
tests
9-
tests-{sim1,sim2,adddata,nodata}
109

1110

1211
[testenv]
@@ -24,10 +23,9 @@ deps =
2423
pytest-mock
2524
pytest-cov
2625
commands =
27-
sim1: pytest --cmdopt=sim1 --cov=DatabankLib --cov-append --cov-report= --import-mode=append {posargs}
28-
sim2: pytest --cmdopt=sim2 --cov=DatabankLib --cov-append --cov-report= --import-mode=append {posargs}
29-
adddata: pytest --cmdopt=adddata --cov=DatabankLib --cov-append --cov-report= --import-mode=append {posargs}
30-
nodata: pytest --cmdopt=nodata --cov=DatabankLib --cov-append --cov-report= --import-mode=append {posargs}
26+
pytest --cmdopt=sim2 --cov=DatabankLib --cov-append --cov-report= --import-mode=append {posargs}
27+
pytest --cmdopt=adddata --cov=DatabankLib --cov-append --cov-report= --import-mode=append {posargs}
28+
pytest --cmdopt=nodata --cov=DatabankLib --cov-append --cov-report= --import-mode=append {posargs}
3129

3230
allowlist_externals = pytest
3331

0 commit comments

Comments
 (0)