Skip to content

Commit

Permalink
add dependency group test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidari committed Jul 31, 2024
1 parent 64e0ed8 commit aff818d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deptry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: pip install poetry

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

- name: run deptry
run: |
Expand Down
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
2 changes: 1 addition & 1 deletion .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
13 changes: 9 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ numpy = "^1.26.4"
polars = "^1.2.1"
matplotlib = "^3.8.3"

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

[tool.poetry.group.dev.dependencies]
[tool.poetry.group.docs.dependencies]
pyyaml = "^6.0.0"
ipykernel = "^6.29.3"
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"
Expand All @@ -40,6 +38,13 @@ 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 = [
"GL03",
Expand Down

0 comments on commit aff818d

Please sign in to comment.