Dual-frequency implementation. Tests adapted. #322
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
# This workflow will install Python dependencies, run tests and lint. | |
name: ICD 1.0 Test Vectors | |
on: | |
schedule: | |
- cron: '20 4 * * *' | |
push: | |
branches: [ master, general-dev ] | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.11'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8 pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: ICD Test Vectors with pytest | |
run: | | |
pytest tests/icd_test_vectors.py | |
- name: Verify JSON output | |
run: | | |
npm install -g ajv-cli | |
ajv -s osnma/utils/json_schema/status_log_schema.json -d 'tests/logs/icd_test_logs/logs*/*.json' |