Skip to content

Commit fb0268f

Browse files
committed
split up vulcan tests for per-commit actions workflow
1 parent f834972 commit fb0268f

3 files changed

Lines changed: 381 additions & 329 deletions

File tree

.github/workflows/branches.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ jobs:
6666
# TODO: eventually we might want to hook these tests into the existing app framework
6767
test-vulcan:
6868
runs-on: ubuntu-latest
69+
strategy:
70+
matrix:
71+
tests:
72+
- most
73+
- running
6974
steps:
7075
- uses: actions/checkout@v3
7176
- name: docker login
@@ -109,7 +114,11 @@ jobs:
109114
./bin/vulcan migrate
110115
111116
echo "=== Running specs ==="
112-
bundle exec rspec spec/workflow_v2_spec.rb spec/snakemake_parser_spec.rb spec/snakemake_inference_spec.rb spec/command_builder_spec.rb
117+
if [[ ${TEST_SET} == "most" ]]; then
118+
bundle exec rspec spec/workflow_v2_spec.rb spec/snakemake_parser_spec.rb spec/snakemake_inference_spec.rb spec/command_builder_spec.rb
119+
else
120+
bundle exec rspec spec/workflow_v2_running_spec.rb
121+
fi
113122
EOF
114123
chmod +x vulcan/test-all.sh
115124
- name: Services check
@@ -118,7 +127,7 @@ jobs:
118127
docker images
119128
docker ps
120129
docker compose exec vulcan_c4_env ps aux | grep [s]shd
121-
- name: Install, migrate & run tests
130+
- name: Install, migrate & run ${{ matrix.tests }} tests
122131
run: |
123132
cd vulcan
124-
docker compose run --rm -e VULCAN_ENV=test vulcan_app ./test-all.sh
133+
docker compose run --rm -e VULCAN_ENV=test -e TEST_SET=${{ matrix.tests }} vulcan_app ./test-all.sh

0 commit comments

Comments
 (0)