Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Commit 129631a

Browse files
authored
fix: folder does not exist error (#95)
1 parent 1279d50 commit 129631a

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,25 @@
1-
# This is a basic workflow to help you get started with Actions
2-
31
name: Tests
42

5-
# Controls when the workflow will run
63
on:
7-
# Triggers the workflow on push or pull request events but only for the "main" branch
84
push:
95
branches: [ "main", "master" ]
106
pull_request:
117
branches: [ "main", "master" ]
12-
13-
# Allows you to run this workflow manually from the Actions tab
148
workflow_dispatch:
159

1610
jobs:
1711
test:
18-
# The type of runner that the job will run on
1912
runs-on: ubuntu-latest
20-
21-
# Steps represent a sequence of tasks that will be executed as part of the job
2213
steps:
23-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2414
- uses: actions/checkout@v3
25-
26-
# Runs a single command using the runners shell
15+
- name: Setup Python
16+
uses: actions/setup-python@v5.3.0
17+
with:
18+
python-version: 3.10.*
2719
- name: Install dependencies
2820
run: |
2921
pip install --upgrade pip
3022
pip install -r requirements.txt
31-
32-
# Runs a set of commands using the runners shell
3323
- name: Run a multi-line script
3424
run: |
3525
pytest

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog db-rocket
22

3+
## Version 3.0.6
4+
- Create folder before copying file
5+
36
## Version 3.0.5
47
- Revert enforcing the creation of .databrickscfg file
58

rocket/rocket.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ def _deploy_dbfs(
254254
):
255255
def helper(file: str) -> None:
256256
target_path = f"{db_path}/{os.path.relpath(file, project_location)}"
257+
target_folder = os.path.dirname(target_path)
258+
execute_shell_command(f"databricks fs mkdirs {target_folder}")
257259
execute_shell_command(f"databricks fs cp --recursive --overwrite {file} {target_path}")
258260
logger.info(f"Uploaded {file} to {target_path}")
259261

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setuptools.setup(
1111
name="databricks-rocket",
12-
version="3.0.5",
12+
version="3.0.6",
1313
author="GetYourGuide",
1414
author_email="engineering.data-products@getyourguide.com",
1515
description="Keep your local python scripts installed and in sync with a databricks notebook. Shortens the feedback loop to develop projects using a hybrid enviroment",

0 commit comments

Comments
 (0)