Skip to content

Commit 5dff3eb

Browse files
committed
These changes split the examples up in chunks and runs the different chunks to speed up the workflow.
1 parent a9b748b commit 5dff3eb

2 files changed

Lines changed: 188 additions & 66 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,15 @@ jobs:
8787
- name: Setup and Run ppi_scaffolds tests
8888
run: |
8989
tar -xvf examples/ppi_scaffolds_subset.tar.gz -C examples
90-
cd tests && uv run python test_diffusion.py
90+
total_chunks=$(nproc)
91+
for chunk_index in $(seq 1 $total_chunks); do
92+
echo "Running chunk $chunk_index of $total_chunks"
93+
uv run python tests/test_diffusion.py --total-chunks $total_chunks --chunk-index $chunk_index &
94+
done
95+
96+
wait
97+
echo "All chunks completed."
98+
#cd tests && uv run python test_diffusion.py
9199
92100
93101
# - name: Test with pytest

0 commit comments

Comments
 (0)