mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 10:24:38 +08:00
Split API tests in 2 jobs
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user