Skip to content

Commit 3b8bc7c

Browse files
authored
Merge pull request #97 from rbob86/master
Added release-please workflow
2 parents de24dcc + f2e7e4b commit 3b8bc7c

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
publish:
1818
if: >
1919
(github.event.inputs) ||
20-
(startsWith(github.event.release.tag_name, 'henry') &&
21-
!github.event.release.draft &&
20+
(!github.event.release.draft &&
2221
!github.event.release.prerelease)
2322
runs-on: ubuntu-latest
2423
steps:
@@ -40,3 +39,4 @@ jobs:
4039
user: __token__
4140
password: ${{ secrets.PYPI_API_TOKEN }}
4241
packages_dir: dist/
42+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: release-please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
token: ${{ secrets.RELEASE_PLEASE_PAT }}
19+
release-type: simple
20+
21+

henry/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.2"
1+
__version__ = "1.0.0"

henry/commands/pulse.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ def check_db_connections(self):
2828
"""Gets all db connections and runs all supported tests against them."""
2929
print("\bTest 1/6: Checking connections")
3030

31-
reserved_names = ["looker__internal__analytics__replica", "looker__internal__analytics", "looker", "looker__ilooker"]
31+
reserved_names = [
32+
"looker__internal__analytics__replica",
33+
"looker__internal__analytics",
34+
"looker",
35+
"looker__ilooker",
36+
]
3237
db_connections: Sequence[models.DBConnection] = list(
3338
filter(lambda c: c.name not in reserved_names, self.sdk.all_connections())
3439
)
@@ -82,7 +87,7 @@ def check_dashboard_performance(self):
8287
request = models.WriteQuery(
8388
model="system__activity",
8489
view="history",
85-
fields=["dashboard.title, query.count"],
90+
fields=["dashboard.title", "query.count"],
8691
filters={
8792
"history.created_date": "7 days",
8893
"history.real_dash_id": "-NULL",
@@ -176,3 +181,4 @@ def check_legacy_features(self):
176181
except SDKError:
177182
legacy_features = [["Unable to pull legacy features due to SDK error"]]
178183
self._tabularize_and_print(legacy_features)
184+

0 commit comments

Comments
 (0)