-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (38 loc) · 1021 Bytes
/
data_checks.yaml
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
name: Validate-Data
on:
push:
branches:
- master
pull_request:
branches: [ master ]
types:
- synchronize
- opened
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: false
jobs:
validate-yaml:
name: Validate Data
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Fix Checkout Problems
run: git config --global core.protectNTFS false
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
show-progress: false
- name: Install Python & Pip
uses: actions/setup-python@v5
with:
python-version: '3.12.1'
cache: 'pip'
- name: Download Required Python Modules
run: |
pip install PyYaml yamale colorama
- name: Run Checks Script
run: |
python .github/code_checks/run_yaml_data_tests.py