Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ghickman committed Nov 21, 2023
1 parent 8c12c32 commit bfb9e89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:

services:
timescaledb:
# mirror what's in timescaledb/Dockerfile
image: timescale/timescaledb:pg14-latest@sha256:c453fa2d290d578a5983b5823e9ffbf16f478735d8c121620436c4a9c6e55df5
build:
dockerfile: timescaledb/Dockerfile
env:
Expand All @@ -42,6 +44,7 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: "opensafely-core/setup-action@v1"
Expand All @@ -51,6 +54,10 @@ jobs:

- name: Run tests
env:
GITHUB_TOKEN:
SLACK_SIGNING_SECRET:
SLACK_TECH_SUPPORT_CHANNEL_ID:
SLACK_TOKEN:
TIMESCALEDB_URL: postgresql://user:password@localhost/metrics
run: |
just test
Expand Down
2 changes: 1 addition & 1 deletion metrics/timescaledb/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def ensure_table(engine, table):
)

# ensure the RO grafana user can read the table
connection.execute(text(f"GRANT SELECT ON {table.name} TO grafanareader"))
# connection.execute(text(f"GRANT SELECT ON {table.name} TO grafanareader"))


class TimescaleDBWriter:
Expand Down

0 comments on commit bfb9e89

Please sign in to comment.