-
Notifications
You must be signed in to change notification settings - Fork 7
104 lines (86 loc) · 2.82 KB
/
model-integrity-checks.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Model integrity
on:
pull_request:
branches: 'main'
paths: 'HTAN.model.csv'
workflow_dispatch:
concurrency:
# cancel the current running workflow from the same branch, PR when a new workflow is triggered
# when the trigger is not a PR but a push, it will use the commit sha to generate the concurrency group
# {{ github.workflow }}: the workflow name is used to generate the concurrency group. This allows you to have more than one workflows
# {{ github.ref_type }}: the type of Git ref object created in the repository. Can be either branch or tag
# {{ github.sha }}: full commit sha
# credit: https://github.com/Sage-Bionetworks-Workflows/sagetasks/blob/main/.github/workflows/ci.yml
group: >-
${{ github.workflow }}-${{ github.ref_type }}-
${{ github.sha }}
cancel-in-progress: true
jobs:
component_requirements_check:
name: Check component requirements
if: always()
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python dependencies
run: python -m pip install --upgrade pip pandas
- name: Run script
shell: bash
run: |
python .github/workflows/check_components.py
attributes_exist_check:
name: Check attributes exist
if: always()
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python dependencies
run: python -m pip install --upgrade pip pandas
- name: Run script
shell: bash
run: |
python .github/workflows/check_attributes_exist.py
attributes_used_check:
name: Check attributes are used
if: always()
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python dependencies
run: python -m pip install --upgrade pip pandas
- name: Run script
shell: bash
run: |
python .github/workflows/check_attributes_are_used.py
attributes_unique_check:
name: Check attributes are unique
if: always()
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python dependencies
run: python -m pip install --upgrade pip pandas
- name: Run script
shell: bash
run: |
python .github/workflows/check_attributes_are_unique.py