Update OneShot Test Pathways (#2228) #943
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: Integrations Testing Post-Merge | |
on: | |
push: | |
branches: | |
- main | |
- 'release/*' | |
jobs: | |
test-setup: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- run: git branch --show-current | |
- name: Get current branch | |
id: get-branch | |
run: > | |
(git branch --show-current | grep -E "release/") | |
&& echo "::set-output name=branch::$(git branch --show-current)" | |
|| echo "::set-output name=branch::main" | |
integrations-tests: | |
runs-on: ubuntu-22.04 | |
needs: test-setup | |
env: | |
SPARSEZOO_TEST_MODE: "true" | |
SPARSEML_TEST_CADENCE: "commit" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/checkout@v2 | |
with: | |
repository: "neuralmagic/sparsezoo" | |
path: "sparsezoo" | |
ref: ${{needs.test-setup.outputs.branch}} | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: "⚙️ Install sparsezoo dependencies" | |
run: pip3 install -U pip && pip3 install setuptools sparsezoo/ | |
- name: "Clean sparsezoo directory" | |
run: rm -r sparsezoo/ | |
- name: "⚙️ Install dependencies" | |
run: pip3 install .[dev,torchvision,deepsparse,onnxruntime,transformers,yolov5] | |
- name: "🔬 Running integrations tests (cadence: commit}})" | |
run: make testinteg TARGETS=yolov5,transformers,image_classification |