-
Notifications
You must be signed in to change notification settings - Fork 73
60 lines (51 loc) · 1.31 KB
/
Copy pathdata-and-links.yml
File metadata and controls
60 lines (51 loc) · 1.31 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Data and link checks
on:
pull_request:
paths:
- "data/**"
- "docs/methodology.md"
- "scripts/**"
- "requirements.txt"
- ".github/workflows/data-and-links.yml"
push:
branches: [main]
paths:
- "data/**"
- "scripts/**"
- "requirements.txt"
schedule:
- cron: "17 3 * * 1"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: data-and-links-${{ github.ref }}
cancel-in-progress: true
jobs:
validate-and-check:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.13"
cache: pip
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Validate structured data
run: python scripts/validate_data.py
- name: Check provider links
run: >-
python scripts/check_links.py
--output .artifacts/link-check.json
- name: Upload link report
if: always()
uses: actions/upload-artifact@v7
with:
name: provider-link-report
path: .artifacts/link-check.json
if-no-files-found: warn
retention-days: 30