Test peers.yaml #172
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: Test peers.yaml | |
on: | |
push: | |
schedule: | |
# Saturday 04:30 UTC | |
- cron: "30 4 * * 6" | |
workflow_dispatch: | |
jobs: | |
test-peers-yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ipaddr requests pyyaml | |
pip install --user yamllint | |
- name: Test peers.yaml (YAML syntax) | |
# Allow for longer line lengths | |
run: | | |
yamllint -d "{ extends: default, rules: { line-length: { max: 120 } } }" peers.yaml | |
- name: Test peers.yaml validity | |
run: python ./tests/test_peering_relations.py |