Split API tests in 2 jobs

This commit is contained in:
Nicola Soranzo
2022-05-04 23:05:13 +01:00
parent 1155b01784
commit 02e36473a3
+3 -2
View File
@@ -28,6 +28,7 @@ jobs:
strategy:
matrix:
python-version: ['3.7']
chunk: [0, 1]
services:
postgres:
image: postgres:13
@@ -63,7 +64,7 @@ jobs:
path: 'galaxy root/.venv'
key: gxy-venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('galaxy root/requirements.txt') }}-api
- name: Run tests
run: ./run_tests.sh --coverage --skip_flakey_fails -api
run: ./run_tests.sh --coverage --skip_flakey_fails -api lib/galaxy_test/api -- --num-shards=2 --shard-id=${{ matrix.chunk }}
working-directory: 'galaxy root'
- uses: codecov/codecov-action@v2
with:
@@ -72,5 +73,5 @@ jobs:
- uses: actions/upload-artifact@v3
if: failure()
with:
name: API test results (${{ matrix.python-version }})
name: API test results (${{ matrix.python-version }}, ${{ matrix.chunk }})
path: 'galaxy root/run_api_tests.html'