3 items related to APT32 operations #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Entry Validation | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "yml/**" | |
pull_request: | |
paths: | |
- "yml/**" | |
jobs: | |
linting-and-qc-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check file extensions | |
run: | | |
files=$(find "$GITHUB_WORKSPACE/yml" -type f -not -name "*.yml"); | |
if [[ $files ]]; then | |
echo "::errror::Files with unexpected extension found, please ensure you use '.yml' (all lower case) for files in the yml/ folder."; | |
for i in $files; do echo "::error file=$i,line=1::Unexpected extension"; done | |
exit 1; | |
fi | |
unset files | |
- name: Run YAML linter | |
uses: ibiqlik/action-yamllint@v3.1.1 | |
with: | |
config_file: .github/.yamllint | |
file_or_dir: yml/**/*.yml | |
- name: Run Pydantic validator | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r .github/schema/requirements.txt | |
python3 .github/schema/pychecks.py "yml/**/*.yml" |