File tree Expand file tree Collapse file tree 3 files changed +26
-13
lines changed Expand file tree Collapse file tree 3 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,28 @@ jobs:
28
28
${{ runner.os }}-pip-
29
29
${{ runner.os }}-
30
30
31
- - name : Install dependencies
31
+ - name : Install inference dependencies
32
32
run : |
33
33
curl -sSL https://install.python-poetry.org | python - --version 1.2.2
34
- poetry install --no-root -E training
34
+ poetry install --no-root --without dev
35
35
36
- - name : Lint
36
+ - name : Run inference tests
37
37
run : |
38
- poetry run black --check lantern
38
+ poetry run pytest -s lantern --ignore lantern/early_stopping.py
39
+
40
+ - name : Install training dependencies
41
+ run : |
42
+ curl -sSL https://install.python-poetry.org | python - --version 1.2.2
43
+ poetry install --no-root -E training
39
44
40
- - name : Run tests
45
+ - name : Run all tests
41
46
run : |
42
47
poetry run pytest -s
43
48
49
+ - name : Lint
50
+ run : |
51
+ poetry run black --check lantern
52
+
44
53
- name : Build wheels
45
54
run : |
46
55
poetry build
Original file line number Diff line number Diff line change @@ -36,17 +36,21 @@ numpy = "^1.19.4"
36
36
torch = " ^1.6.0"
37
37
tqdm = " *"
38
38
tensorboard = { version = " ^2.2.0" , optional = true }
39
+ pydantic = " ^1.0.0"
40
+ pandas = " ^1.0.0"
39
41
40
42
[tool .poetry .extras ]
41
43
training = [" tensorboard" ]
42
44
43
- [tool .poetry .group .dev .dependencies ]
44
- cookiecutter = " ^1.7.2"
45
- flake8 = " ^3.8.4"
45
+ [tool .poetry .group .test .dependencies ]
46
46
pytest = " ^6.1.2"
47
47
rstcheck = " ^3.3.1"
48
48
Sphinx = " ^3.3.0"
49
49
black = " ^22.8.0"
50
+
51
+ [tool .poetry .group .dev .dependencies ]
52
+ cookiecutter = " ^1.7.2"
53
+ flake8 = " ^3.8.4"
50
54
torchvision = " 0.*"
51
55
pytorch-datastream = " ^0.4.0"
52
56
You can’t perform that action at this time.
0 commit comments