Skip to content

Commit

Permalink
add dependency check workflow (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidari authored Jul 30, 2024
1 parent dd3e022 commit 64e0ed8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/deptry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: model

on:
pull_request:
push:
branches: [main]

jobs:
dependency-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: cache poetry
uses: actions/cache@v4
with:
path: ~/.local
key: ${{ runner.os }}-poetry

- name: install poetry
run: pip install poetry

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

- name: run deptry
run: |
poetry run deptry . --per-rule-ignores "DEP001=pyrenew,DEP003=pytest"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ exclude = [{path = "datasets/*.rds"}]
python = "^3.12"
numpyro = ">=0.15.1"
jax = ">=0.4.30"
jaxlib = ">=0.4.30"
numpy = "^1.26.4"
polars = "^1.2.1"
matplotlib = "^3.8.3"
Expand All @@ -39,6 +38,7 @@ sphinx-book-theme = "^1.1.2"
pillow = "^10.3.0"
nbconvert = "^7.16.4"
ipywidgets = "^8.1.3"
deptry = "^0.17.0"

[tool.numpydoc_validation]
checks = [
Expand Down

0 comments on commit 64e0ed8

Please sign in to comment.