Skip to content

Commit

Permalink
add a narrow dependency group for testing in CI (#348)
Browse files Browse the repository at this point in the history
* add dependency group test

* update website build dep group

* change dep group for running deptry

* fix typo

* add dev group

* update dep group for running deptry

* moving packages between dep groups

* test jupyter dependencies

* Update .github/workflows/deptry.yml

Co-authored-by: Damon Bayer <[email protected]>

* update deptry

* remove pillow

---------

Co-authored-by: Damon Bayer <[email protected]>
  • Loading branch information
sbidari and damonbayer committed Aug 1, 2024
1 parent 3780889 commit d8e9f5d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
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
23 changes: 16 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,31 @@ 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"
pyyaml = "^6.0.0"
nbclient = "^0.10.0"
nbformat = "^5.10.0"
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

0 comments on commit d8e9f5d

Please sign in to comment.