Skip to content

Commit dbaf194

Browse files
committed
fix: add inference dependencies and test inference in actions
1 parent 5d75437 commit dbaf194

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,28 @@ jobs:
2828
${{ runner.os }}-pip-
2929
${{ runner.os }}-
3030
31-
- name: Install dependencies
31+
- name: Install inference dependencies
3232
run: |
3333
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
3535
36-
- name: Lint
36+
- name: Run inference tests
3737
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
3944
40-
- name: Run tests
45+
- name: Run all tests
4146
run: |
4247
poetry run pytest -s
4348
49+
- name: Lint
50+
run: |
51+
poetry run black --check lantern
52+
4453
- name: Build wheels
4554
run: |
4655
poetry build

poetry.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,21 @@ numpy = "^1.19.4"
3636
torch = "^1.6.0"
3737
tqdm = "*"
3838
tensorboard = { version = "^2.2.0", optional = true }
39+
pydantic = "^1.0.0"
40+
pandas = "^1.0.0"
3941

4042
[tool.poetry.extras]
4143
training = ["tensorboard"]
4244

43-
[tool.poetry.group.dev.dependencies]
44-
cookiecutter = "^1.7.2"
45-
flake8 = "^3.8.4"
45+
[tool.poetry.group.test.dependencies]
4646
pytest = "^6.1.2"
4747
rstcheck = "^3.3.1"
4848
Sphinx = "^3.3.0"
4949
black = "^22.8.0"
50+
51+
[tool.poetry.group.dev.dependencies]
52+
cookiecutter = "^1.7.2"
53+
flake8 = "^3.8.4"
5054
torchvision = "0.*"
5155
pytorch-datastream = "^0.4.0"
5256

0 commit comments

Comments
 (0)