File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 8282 run : |
8383 python -m pip install .
8484
85+ # Run machine-independent tests
8586 - name : Run Tests
8687 run : |
87- python -m unittest tests/test_*.py
88+ pytest tests/unit/test_*.py
89+ python -m unittest tests/integration/python_tests/group_by_command/test_*.py
90+ python -m unittest tests/integration/python_tests/group_by_workflow/test_*.py
8891
8992 # Build documentation on all PRs and pushes; only publish (commit to gh-pages) on pushes.
9093 build-docs :
Original file line number Diff line number Diff line change 1717
1818## Testing example for Perlmutter
1919
20- Example:
2120``` bash
21+ rm -rf build
2222conda clean --all --y
2323conda env create -f conda/dev.yml -n zstash_dev_20251017_test1
2424conda activate zstash_dev_20251017_test1
@@ -45,3 +45,35 @@ time ./test_ls_globus.bash
4545```
4646
4747## Testing example for Chrysalis
48+
49+ ``` bash
50+ rm -rf build
51+ conda clean --all --y
52+ conda env create -f conda/dev.yml -n zstash_dev_20251017_test1
53+ conda activate zstash_dev_20251017_test1
54+ pre-commit run --all-files
55+ python -m pip install .
56+ pytest tests/unit/test_* .py
57+ # 1 passed in 0.84s
58+ python -m unittest tests/integration/python_tests/group_by_command/test_* .py
59+ # Ran 69 tests in 110.139s
60+ # OK (skipped=32)
61+ # NOTE: Some tests are skipped because Chrysalis doesn't have direct `hsi`/HPSS access
62+ python -m unittest tests/integration/python_tests/group_by_workflow/test_* .py
63+ # Ran 4 tests in 6.889s
64+ # OK
65+ cd tests/integration/bash_tests/run_from_chrysalis/
66+ # TODO: Add Chrysalis-specific tests
67+ ```
68+
69+ ## Testing with GitHub Actions
70+
71+ GitHub Actions runs the tests according to ` .github/workflows/build_workflow.yml ` :
72+ ```
73+ # Run machine-independent tests
74+ - name: Run Tests
75+ run: |
76+ pytest tests/unit/test_*.py
77+ python -m unittest tests/integration/python_tests/group_by_command/test_*.py
78+ python -m unittest tests/integration/python_tests/group_by_workflow/test_*.py
79+ ```
You can’t perform that action at this time.
0 commit comments