Skip to content

Commit

Permalink
update unit and nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka committed Feb 21, 2024
1 parent 4f22d22 commit d558538
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Run nightly tests
on:
schedule:
- cron: '0 0 * * *'

jobs:
extensive-python-tests:
runs-on: ubuntu-latest
env:
SPARSEZOO_TEST_MODE: "true"
NM_DISABLE_ANALYTICS: "true"
steps:
- uses: actions/checkout@v2
- name: "⚙️ Install dependencies"
run: pip3 install .[dev]
- name: "🔬 Running tests"
run: make test TARGETS=full
21 changes: 18 additions & 3 deletions .github/workflows/test-unit.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Basic Test Checks
name: Basic Test Checks - Unit and Smoke
on:
push:
branches:
Expand All @@ -19,7 +19,7 @@ jobs:
((git diff --name-only origin/main HEAD | grep -E "[src|tests]/sparsezoo|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:
unit-tests:
runs-on: ubuntu-latest
env:
SPARSEZOO_TEST_MODE: "true"
Expand All @@ -31,4 +31,19 @@ jobs:
- name: "⚙️ Install dependencies"
run: pip3 install .[dev]
- name: "🔬 Running tests"
run: make test
run: make test
smoke-tests:
runs-on: ubuntu-latest
env:
SPARSEZOO_TEST_MODE: "true"
NM_DISABLE_ANALYTICS: "true"
needs: test-setup
if: ${{needs.test-setup.outputs.python-diff == 1}}
steps:
- uses: actions/checkout@v2
- name: "⚙️ Install dependencies"
run: pip3 install .[dev]
- name: "🔬 Running tests"
run: make test
- name: Run CLI smoke tests
run: PYTEST_ARGS="-m smoke" make test

0 comments on commit d558538

Please sign in to comment.