docs: update readme #390
This file contains 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: 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" |