Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit d558538

Browse files
committed
update unit and nightly tests
1 parent 4f22d22 commit d558538

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

.github/workflows/test-nightly.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Run nightly tests
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
6+
jobs:
7+
extensive-python-tests:
8+
runs-on: ubuntu-latest
9+
env:
10+
SPARSEZOO_TEST_MODE: "true"
11+
NM_DISABLE_ANALYTICS: "true"
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: "⚙️ Install dependencies"
15+
run: pip3 install .[dev]
16+
- name: "🔬 Running tests"
17+
run: make test TARGETS=full

.github/workflows/test-unit.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Basic Test Checks
1+
name: Basic Test Checks - Unit and Smoke
22
on:
33
push:
44
branches:
@@ -19,7 +19,7 @@ jobs:
1919
((git diff --name-only origin/main HEAD | grep -E "[src|tests]/sparsezoo|setup.py")
2020
|| (echo $GITHUB_REF | grep -E "refs/heads/[release/|main]"))
2121
&& echo "::set-output name=output::1" || echo "::set-output name=output::0"
22-
python-tests:
22+
unit-tests:
2323
runs-on: ubuntu-latest
2424
env:
2525
SPARSEZOO_TEST_MODE: "true"
@@ -31,4 +31,19 @@ jobs:
3131
- name: "⚙️ Install dependencies"
3232
run: pip3 install .[dev]
3333
- name: "🔬 Running tests"
34-
run: make test
34+
run: make test
35+
smoke-tests:
36+
runs-on: ubuntu-latest
37+
env:
38+
SPARSEZOO_TEST_MODE: "true"
39+
NM_DISABLE_ANALYTICS: "true"
40+
needs: test-setup
41+
if: ${{needs.test-setup.outputs.python-diff == 1}}
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: "⚙️ Install dependencies"
45+
run: pip3 install .[dev]
46+
- name: "🔬 Running tests"
47+
run: make test
48+
- name: Run CLI smoke tests
49+
run: PYTEST_ARGS="-m smoke" make test

0 commit comments

Comments
 (0)