-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.53 KB
/
validate-definitions.yml
File metadata and controls
60 lines (51 loc) · 1.53 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: Validate Definitions
on:
pull_request:
push:
branches:
- main
paths:
- 'assignments/**/*.tsv'
- 'outputs/reviewed/**/*.tsv'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --group dev
- name: Validate assignment files
run: |
echo "Validating assignment files..."
for file in assignments/*.tsv; do
if [ -f "$file" ]; then
echo "Validating $file..."
echo "Validation not yet implemented - skipping"
fi
done
- name: Validate reviewed outputs
run: |
echo "Validating reviewed outputs..."
if [ -d "outputs/reviewed" ]; then
for file in outputs/reviewed/*/*.tsv; do
if [ -f "$file" ]; then
echo "Validating $file..."
echo "Validation not yet implemented - skipping"
fi
done
else
echo "No reviewed outputs directory found - skipping"
fi
- name: Summary
if: always()
run: |
echo "## Validation Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Validated all TSV files for OBO Foundry compliance." >> $GITHUB_STEP_SUMMARY