Add unit tests for utils/process_result.py with consolidated pytest CI #3
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 Utils | |
| on: | |
| pull_request: | |
| paths: | |
| - 'utils/**/*.py' | |
| - '.github/workflows/test-utils.yml' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'utils/**/*.py' | |
| - '.github/workflows/test-utils.yml' | |
| jobs: | |
| test: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft != true | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest pydantic pyyaml | |
| - name: Run pytest for matrix-logic | |
| run: | | |
| cd utils/matrix-logic | |
| pytest test_generate_sweep_configs.py -v | |
| - name: Run pytest for process_result | |
| run: | | |
| cd utils | |
| pytest test_process_result.py -v |