Skip to content

Commit a0b56e1

Browse files
committed
tests: 📏 add smoke tests
1 parent ea88111 commit a0b56e1

14 files changed

Lines changed: 78 additions & 15 deletions

File tree

.github/workflows/python-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3232
- name: Test with pytest
3333
run: |
34-
pytest --ignore=tests/run_all_test.py
34+
pytest

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,7 @@ cython_debug/
186186

187187
# not ignore requirements.txt
188188
!*requirements.txt
189+
190+
# keep datasets in test
191+
!tests/smoke_test/datasets/
192+
!tests/smoke_test/datasets/**/*.npy

tests/basicts_test/test_launcher.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/datasets_test/__init__.py

Whitespace-only changes.

tests/run_all_test.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/smoke_test/__init__.py

Whitespace-only changes.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "ETTh1_mini",
3+
"domain": "electricity transformer temperature",
4+
"frequency (minutes)": 60,
5+
"shape": [
6+
720,
7+
7
8+
],
9+
"timestamps_shape": [
10+
720,
11+
4
12+
],
13+
"timestamps_description": [
14+
"time of day",
15+
"day of week",
16+
"day of month",
17+
"day of year"
18+
],
19+
"num_time_steps": 720,
20+
"num_vars": 7,
21+
"has_graph": false,
22+
"regular_settings": {
23+
"train_val_test_ratio": [
24+
0.6,
25+
0.2,
26+
0.2
27+
],
28+
"norm_each_channel": true,
29+
"rescale": false,
30+
"metrics": [
31+
"MAE",
32+
"MSE"
33+
],
34+
"null_val": NaN
35+
}
36+
}
4.06 KB
Binary file not shown.
2.38 KB
Binary file not shown.
11.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)