Config Parsing Pytests PR #911 #394
Workflow file for this run
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: Test Matrix Logic | |
| run-name: "Config Parsing Pytests PR #${{ github.event.pull_request.number }}" | |
| on: | |
| pull_request: | |
| paths: | |
| - 'utils/matrix_logic/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| if: github.event.pull_request.draft != true | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pydantic pyyaml | |
| - name: test_generate_sweep_configs tests | |
| run: | | |
| cd utils/matrix_logic | |
| pytest test_generate_sweep_configs.py -v | |
| - name: test_validation tests | |
| run: | | |
| cd utils/matrix_logic | |
| pytest test_validation.py -v |