Skip to content

Commit 3486b0a

Browse files
committed
Fix GitHub Actions and update README
1 parent d5485cd commit 3486b0a

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/build_workflow.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ jobs:
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:

tests/README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ tests/
1717

1818
## Testing example for Perlmutter
1919

20-
Example:
2120
```bash
21+
rm -rf build
2222
conda clean --all --y
2323
conda env create -f conda/dev.yml -n zstash_dev_20251017_test1
2424
conda 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+
```

0 commit comments

Comments
 (0)