Skip to content

Commit 400b018

Browse files
authored
Bumped versions of GitHub Actions (#1151)
1 parent 828bc04 commit 400b018

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

.github/workflows/acceptance.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ jobs:
1919
runs-on: larger
2020
steps:
2121
- name: Checkout Code
22-
uses: actions/[email protected]
23-
24-
- name: Unshallow
25-
run: git fetch --prune --unshallow
22+
uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
2625

2726
- name: Install Python
2827
uses: actions/setup-python@v4
@@ -35,7 +34,7 @@ jobs:
3534
run: pip install hatch==1.9.4
3635

3736
- name: Run integration tests
38-
uses: databrickslabs/sandbox/acceptance@acceptance/v0.1.4
37+
uses: databrickslabs/sandbox/acceptance@acceptance/v0.2.1
3938
with:
4039
vault_uri: ${{ secrets.VAULT_URI }}
4140
timeout: 45m

.github/workflows/nightly.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ jobs:
2020
runs-on: larger
2121
steps:
2222
- name: Checkout Code
23-
uses: actions/[email protected]
24-
25-
- name: Unshallow
26-
run: git fetch --prune --unshallow
23+
uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
2726

2827
- name: Install Python
2928
uses: actions/setup-python@v4
@@ -36,7 +35,7 @@ jobs:
3635
run: pip install hatch==1.9.4
3736

3837
- name: Run nightly tests
39-
uses: databrickslabs/sandbox/acceptance@acceptance/v0.2.0
38+
uses: databrickslabs/sandbox/acceptance@acceptance/v0.2.1
4039
with:
4140
vault_uri: ${{ secrets.VAULT_URI }}
4241
timeout: 45m

.github/workflows/push.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v3
26-
27-
- name: Unshallow
28-
run: git fetch --prune --unshallow
26+
with:
27+
fetch-depth: 0
2928

3029
- name: Install Python
3130
uses: actions/setup-python@v4
@@ -48,6 +47,8 @@ jobs:
4847
steps:
4948
- name: Checkout
5049
uses: actions/checkout@v3
50+
with:
51+
fetch-depth: 0
5152

5253
- name: Install Python
5354
uses: actions/setup-python@v4

tests/integration/test_installation.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
1313
from databricks.labs.blueprint.parallel import Threads
1414
from databricks.labs.blueprint.tui import MockPrompts
1515
from databricks.labs.blueprint.wheels import ProductInfo
16-
from databricks.sdk.errors import AlreadyExists, InvalidParameterValue, NotFound
16+
from databricks.sdk.errors import (
17+
AlreadyExists,
18+
BadRequest,
19+
InvalidParameterValue,
20+
NotFound,
21+
)
1722
from databricks.sdk.retries import retried
1823
from databricks.sdk.service import compute, sql
1924
from databricks.sdk.service.iam import PermissionLevel
@@ -286,7 +291,7 @@ def test_running_real_validate_groups_permissions_job_fails(
286291
request_object_type="cluster-policies", request_object_id=cluster_policy.policy_id, access_control_list=[]
287292
)
288293

289-
with pytest.raises(ValueError):
294+
with pytest.raises(BadRequest):
290295
workflows_install.run_workflow("validate-groups-permissions")
291296

292297

0 commit comments

Comments
 (0)