Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a narrow dependency group for testing in CI #348

4 changes: 2 additions & 2 deletions .github/workflows/deptry.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: model
name: dependency-check

on:
pull_request:
Expand Down Expand Up @@ -29,4 +29,4 @@ jobs:

- name: run deptry
run: |
poetry run deptry . --per-rule-ignores "DEP001=pyrenew,DEP003=pytest"
poetry run deptry . --per-rule-ignores "DEP001=pyrenew,DEP001=pytest,DEP003=pytest"
2 changes: 1 addition & 1 deletion .github/workflows/test_model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: pip install poetry

- name: install package
run: poetry install --with dev
run: poetry install --with test

- name: run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: pip install poetry

- name: install package
run: poetry install --with dev
run: poetry install --with test

- name: install pytest-cov
run: poetry run pip install pytest-cov
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: pip install poetry

- name: install package
run: poetry install --with dev
run: poetry install --with docs

# This section renders the quarto documents (and the README file)
# and moves them to the docs/source/_compiled_qmd directory
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
run: pip install poetry

- name: Install dependencies with Poetry
run: poetry install --with dev
run: poetry install --with docs

# Building
- name: Build HTML using Poetry
Expand Down
24 changes: 17 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,32 @@ matplotlib = "^3.8.3"
optional = true

[tool.poetry.group.dev.dependencies]
pyyaml = "^6.0.0"
nbconvert = "^7.16.4"
ipywidgets = "^8.1.3"
deptry = "^0.17.0"

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
ipykernel = "^6.29.3"
pillow = "^10.3.0"
pyyaml = "^6.0.0"
nbclient = "^0.10.0"
nbformat = "^5.10.0"
damonbayer marked this conversation as resolved.
Show resolved Hide resolved
pytest-cov = "^5.0.0"
pytest-mpl = "^0.17.0"
numpydoc = "^1.7.0"
arviz = "^0.18.0"
sphinx = "^7.2.6"
sphinxcontrib-mermaid = "^0.9.2"
sphinx-autodoc-typehints = "^2.1.0"
sphinx-book-theme = "^1.1.2"
pillow = "^10.3.0"
nbconvert = "^7.16.4"
ipywidgets = "^8.1.3"
deptry = "^0.17.0"

[tool.poetry.group.test]
optional = true

[tool.poetry.group.test.dependencies]
pytest-cov = "^5.0.0"
pytest-mpl = "^0.17.0"

[tool.numpydoc_validation]
checks = [
Expand Down