forked from ACCESS-Community-Hub/PyEarthTools
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.13 KB
/
interrogate.yml
File metadata and controls
39 lines (35 loc) · 1.13 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
# This workflow will install and run the interrogate package to check for missing docstrings
name: Run interrogate
on: pull_request
permissions:
contents: read
jobs:
interrogate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install pyogrio
pip install .[dev]
- name: interrogate checks
run: |
interrogate -v --fail-under 40 --exclude "*/__init__.py" --exclude "*/__main__.py" --output docstring-coverage.txt --generate-badge interrogate-badge.svg
ls -l
- name: Upload docstring-coverage
uses: actions/upload-artifact@v4
with:
name: docstring-coverage
path: docstring-coverage.txt
if-no-files-found: warn
- name: Upload interrogate badge
uses: actions/upload-artifact@v4
with:
name: interrogate-badge
path: interrogate-badge.svg
if-no-files-found: warn