Skip to content

Commit

Permalink
move services to correct spot for RL
Browse files Browse the repository at this point in the history
  • Loading branch information
m-goggins committed Jun 13, 2024
1 parent 4139e80 commit e4547a3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
pull_request:
branches:
- "**"
paths:
- containers/tefca-viewer/**
merge_group:
types:
- checks_requested
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/testContainerRecordLinkage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ env:
jobs:
unit-test-python-containers:
runs-on: ubuntu-latest
services:
test-db:
image: postgres:13-alpine3.16
env:
POSTGRES_PASSWORD: pw
POSTGRES_DB: testdb
POSTGRES_USER: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--name testdb
ports:
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -45,22 +61,6 @@ jobs:
pip install -r dev-requirements.txt
fi
- name: Run unit tests for container
services:
test-db:
image: postgres:13-alpine3.16
env:
POSTGRES_PASSWORD: pw
POSTGRES_DB: testdb
POSTGRES_USER: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--name testdb
ports:
- 5432:5432
working-directory: ./containers/${{env.CONTAINER}}
run: |
python -m pytest -m "not integration"
Expand Down

0 comments on commit e4547a3

Please sign in to comment.