Skip to content

Commit 1dfe2fb

Browse files
Peter JohnsonPeter Johnson
authored andcommitted
Put pytest in testing group in poetry and update CI
1 parent f3e211d commit 1dfe2fb

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

.github/workflows/staging-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Install dependencies
6060
if: steps.dependencies-cache.outputs.cache-hit != 'true'
6161
run: |
62-
poetry install --no-interaction --no-root
62+
poetry install --with-test --no-interaction --no-root
6363
6464
# TODO: add linting / black / flake8
6565
# - name: Lint with flake8

poetry.lock

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

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ priority = "explicit"
1919
python = ">=3.11,<3.14"
2020

2121
# Uncomment below and comment out cpu if using macOS, the marker feature does not work (at least on my machine) - MM
22-
torch = { version = "^2.9.0" }
23-
#torch = { version = "^2.8.0+cpu", source = "pytorch-cpu" }
24-
22+
#torch = { version = "^2.9.0", markers = "sys_platform != 'linux'" }
23+
torch = { version = "^2.8.0+cpu", markers = "sys_platform == 'linux'", source = "pytorch-cpu" }
2524

2625
typing_extensions = "^4.15.0"
2726
lf_toolkit = { git = "https://github.com/lambda-feedback/toolkit-python.git", branch = "main", extras = [
@@ -38,12 +37,15 @@ sentencepiece = "^0.2.1"
3837
# https://github.com/lambda-feedback/toolkit-python/issues/2
3938
sympy = ">=1.14.0"
4039

41-
[tool.poetry.group.dev.dependencies]
40+
[tool.poetry.group.test.dependencies]
4241
pytest = "^8.4.2"
42+
43+
[tool.poetry.group.dev.dependencies]
4344
flake8 = "^7.3.0"
4445
nltk = "^3.9.2"
4546
matplotlib = "^3.10.7"
4647
pandas = "^2.3.3"
48+
graphviz = "^0.20.1"
4749

4850
[build-system]
4951
requires = ["poetry-core"]

0 commit comments

Comments
 (0)