-
Notifications
You must be signed in to change notification settings - Fork 186
44 lines (37 loc) · 993 Bytes
/
test-utils.yml
File metadata and controls
44 lines (37 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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