Skip to content

Update README.md

Update README.md #517

Workflow file for this run

name: Test Checks
on:
pull_request:
branches:
- main
- 'release/*'
push:
branches:
- main
- 'release/*'
jobs:
test-setup:
runs-on: ubuntu-latest
outputs:
python-diff: ${{ steps.python-check.outputs.output }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Checking if sparsify python code was changed"
id: python-check
run: >
((git diff --name-only origin/main HEAD | grep -E "[src|tests]/sparsify|setup.py")
|| (echo $GITHUB_REF | grep -E "refs/heads/[release/|main]"))
&& echo "::set-output name=output::1" || echo "::set-output name=output::0"
python-tests:
runs-on: ubuntu-latest
env:
SPARSEZOO_TEST_MODE: "true"
SPARSEZOO_API_URL: https://staging-api.neuralmagic.com
needs: test-setup
if: ${{needs.test-setup.outputs.python-diff == 1}}
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v2
- name: "⚙️ Install dependencies"
run: pip3 install -e .[dev]
- name: "⚙️ Logging into Sparsify"
run: sparsify.login ${{ secrets.NM_SPARSIFY_TEST_API_KEY }}
- name: "🔬 Running base tests"
run: make test
- name: "🔬 Running package tests"
run: make test TARGETS=package
- name: "🔬 Running auto tests"
run: make test TARGETS=auto