-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (41 loc) · 1.1 KB
/
python_testing.yaml
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
name: Pytest Testing
on: [push]
jobs:
changes:
uses: ./.github/workflows/filter.yaml
test-python:
name: HalutConv2d and HalutLinear tests
needs: changes
if: ${{ needs.changes.outputs.algorithmic == 'true' }}
strategy:
fail-fast: false
matrix:
split: [1, 2, 3, 4, 5]
runs-on: ubuntu-latest
container:
image: ghcr.io/joennlae/halutmatmul-conda-gpu:latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- name: Test with pytest
run: |
source /venv/bin/activate
pytest -srPA -m "not heavy" -k "not gpu" --splits 5 --group ${{ matrix.split }}
e2e-python:
name: E2E test using ResNet18
needs: changes
if: ${{ needs.changes.outputs.algorithmic == 'true' }}
runs-on: ubuntu-latest
container:
image: ghcr.io/joennlae/halutmatmul-conda-gpu:latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- name: E2E test using ResNet18
run: |
source /venv/bin/activate
pytest -srPA -m "heavy"