Skip to content

Commit 4952a70

Browse files
committed
πŸ“¦πŸ›‚ Add dependency validation jobs to CI workflow
1 parent d5a9b9f commit 4952a70

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

β€Žproject_name/.github/workflows/ci.yml.jinjaβ€Ž

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,28 @@ jobs:
8080
- name: Run mypy
8181
run: uv run --no-sync mypy
8282

83+
dependencies:
84+
if: {% raw %}${{ always() }}{% endraw %}
85+
runs-on: ubuntu-latest
86+
steps:
87+
- uses: actions/checkout@v5
88+
with:
89+
persist-credentials: false
90+
- uses: astral-sh/setup-uv@v6
91+
- name: Install packages
92+
run: >-
93+
uv sync
94+
--all-extras
95+
--all-groups
96+
--exact
97+
--locked
98+
- name: List packages
99+
run: uv pip list
100+
- name: Run deptry
101+
run: uv run --no-sync --with deptry deptry src/
102+
- name: Run pip-audit
103+
run: uv run --no-sync --with pip-audit pip-audit --skip-editable
104+
83105
test:
84106
{%- raw %}
85107
if: ${{ always() }}
@@ -214,6 +236,7 @@ jobs:
214236
ruff-check,
215237
pre-commit,
216238
mypy,
239+
dependencies,
217240
test,
218241
pylint,
219242
]

0 commit comments

Comments
Β (0)