-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 945 Bytes
/
deptry.yml
File metadata and controls
27 lines (25 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Deptry Dependency Check
on: [pull_request]
jobs:
dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup the minimum required python distribution
- uses: actions/setup-python@v5
with:
python-version: "3.13"
# Install deptry
- run: pip install deptry
# Remove testing related packages
- run: sed -e '/hypothesis*/d' -e '/pytest*/d' -i requirements.txt
# Install all other packages
- run: pip install -r requirements.txt
# Remove pyproject.toml so that deptry doesn't get confused
- run: rm pyproject.toml
# Remove the pytest modules because they are for testing only.
- run: sed -i -e '/pytest/d' -e '/hypothesis/d' -e '/diffimg/d' requirements.txt
# Install requirements
- run: pip install -r requirements.txt
# Run deptry to check that all dependencies are present.
- run: deptry .