Imu speed now being sent #335
This file contains hidden or 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: ADJ Validator | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| validate-adj: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install jsonschema | |
| - name: Run ADJ validation | |
| run: | | |
| python3 .github/workflows/scripts/adj-tester/main.py | |
| - name: Notify Slack on failure | |
| if: failure() | |
| env: | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| run: | | |
| jq -n \ | |
| --arg repo "${{ github.repository }}" \ | |
| --arg branch "${{ github.ref_name }}" \ | |
| --arg actor "${{ github.actor }}" \ | |
| --arg run_url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ | |
| '{ | |
| text: "<!channel> ❌ ADJ Validator Failed\n\nRepository: \($repo)\nBranch: \($branch)\nActor: \($actor)\n\nWorkflow run:\n\($run_url)" | |
| }' | curl -X POST -H "Content-type: application/json" \ | |
| --data @- \ | |
| $SLACK_WEBHOOK |