Skip to content

Commit

Permalink
Use unique group id for unit-postgres tests
Browse files Browse the repository at this point in the history
Otherwise unit tests get cancelled when unit-postgres job finishes.
  • Loading branch information
nsoranzo committed Mar 19, 2022
1 parent 6189032 commit cc5224b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/unit-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ on:
paths-ignore:
- 'client/**'
- 'doc/**'
- 'lib/galaxy_test/selenium/**'
pull_request:
paths-ignore:
- 'client/**'
- 'doc/**'
- 'lib/galaxy_test/selenium/**'
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/postgres?client_encoding=utf8' # using postgres as the db
concurrency:
group: py-unit-${{ github.ref }}
group: py-unit-postgres-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
Expand Down Expand Up @@ -50,7 +52,7 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: gxy-venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('galaxy root/requirements.txt') }}-unitdb
- name: Run tests
key: gxy-venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('galaxy root/requirements.txt') }}-unit-postgres
- name: Run migration tests
run: ./run_tests.sh -unit test/unit/data/model/migrations/test_migrations.py
working-directory: 'galaxy root'

0 comments on commit cc5224b

Please sign in to comment.