Skip to content

Commit

Permalink
chore: update deptry workflow to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-pl committed Feb 6, 2025
1 parent 1f861a6 commit 880dbfe
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/deptry.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
#SPDX-FileCopyrightText: 2024 Birger Schacht
#SPDX-License-Identifier: MIT
name: Run deptry dependency checker

on: [push, pull_request]

jobs:
deptry:
uses: acdh-oeaw/prosnet-workflows/.github/workflows/[email protected]
with:
src: "."
python-version: "3.12"
run-deptry:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.26"

enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Install dependencies
run: uv sync --dev

- name: Run deptry
run: uv run deptry .

0 comments on commit 880dbfe

Please sign in to comment.