Skip to content

Add unit tests for utils/process_result.py with consolidated pytest CI #3

Add unit tests for utils/process_result.py with consolidated pytest CI

Add unit tests for utils/process_result.py with consolidated pytest CI #3

Workflow file for this run

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