Skip to content

Commit

Permalink
Merge pull request #97 from rbob86/master
Browse files Browse the repository at this point in the history
Added release-please workflow
  • Loading branch information
rbob86 authored Aug 19, 2024
2 parents de24dcc + f2e7e4b commit 3b8bc7c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
publish:
if: >
(github.event.inputs) ||
(startsWith(github.event.release.tag_name, 'henry') &&
!github.event.release.draft &&
(!github.event.release.draft &&
!github.event.release.prerelease)
runs-on: ubuntu-latest
steps:
Expand All @@ -40,3 +39,4 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist/

21 changes: 21 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- master

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_PAT }}
release-type: simple


2 changes: 1 addition & 1 deletion henry/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.2"
__version__ = "1.0.0"
10 changes: 8 additions & 2 deletions henry/commands/pulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ def check_db_connections(self):
"""Gets all db connections and runs all supported tests against them."""
print("\bTest 1/6: Checking connections")

reserved_names = ["looker__internal__analytics__replica", "looker__internal__analytics", "looker", "looker__ilooker"]
reserved_names = [
"looker__internal__analytics__replica",
"looker__internal__analytics",
"looker",
"looker__ilooker",
]
db_connections: Sequence[models.DBConnection] = list(
filter(lambda c: c.name not in reserved_names, self.sdk.all_connections())
)
Expand Down Expand Up @@ -82,7 +87,7 @@ def check_dashboard_performance(self):
request = models.WriteQuery(
model="system__activity",
view="history",
fields=["dashboard.title, query.count"],
fields=["dashboard.title", "query.count"],
filters={
"history.created_date": "7 days",
"history.real_dash_id": "-NULL",
Expand Down Expand Up @@ -176,3 +181,4 @@ def check_legacy_features(self):
except SDKError:
legacy_features = [["Unable to pull legacy features due to SDK error"]]
self._tabularize_and_print(legacy_features)

0 comments on commit 3b8bc7c

Please sign in to comment.