-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (28 loc) · 850 Bytes
/
test.yml
File metadata and controls
29 lines (28 loc) · 850 Bytes
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
name: Test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: requirements.txt
- name: Install dependencies
run: python -m pip install -r requirements.txt -r requirements-dev.txt
- name: Run pre-commit hooks
run: pre-commit run --all-files --show-diff-on-failure
- name: Validate YAML
run: python tests/validate_data.py
- name: Parsing YAML files (checking for correct relations)
run: python src/data.py
- name: Verify URLs
uses: urlstechie/urlchecker-action@0.0.34
with:
subfolder: simtools
file_types: .yaml
retry_count: 3
force_pass: false