diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4191fe8..c4adb27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,9 +6,9 @@ on: branches: master jobs: - build: + build-ubuntu: + name: Build ubuntu runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - name: Set up Python @@ -25,3 +25,21 @@ jobs: poetry run task build - name: Upload Coverage to Codecov uses: codecov/codecov-action@v2 + + build-windows: + name: Build windows + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + poetry install + - name: Build + run: | + poetry run task build diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index dc62fdc..0000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Windows - -on: - pull_request: - push: - branches: master - -jobs: - build: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install poetry - poetry install - - name: Build - run: | - poetry run task build diff --git a/src/wanna/components/loader.py b/src/wanna/components/loader.py index 634bc57..e8808d9 100644 --- a/src/wanna/components/loader.py +++ b/src/wanna/components/loader.py @@ -10,5 +10,4 @@ def load_wanna_component(path: Union[Path, str]): with open(str(path), "r") as f: t = Template(f.read()) component = t.safe_substitute(os.environ) - print(component) return comp.load_component_from_text(component) diff --git a/tests/deployment/test_gcp_connector.py b/tests/deployment/test_gcp_connector.py index 8500762..91fc8b1 100644 --- a/tests/deployment/test_gcp_connector.py +++ b/tests/deployment/test_gcp_connector.py @@ -96,7 +96,6 @@ def test_upsert_cloud_function(self): CloudFunctionsServiceClient.get_function = MagicMock() CloudFunctionsServiceClient.update_function = MagicMock() - print(resource) function_path, function_url = self.connector.upsert_cloud_function( resource=resource, version=self.version, env=self.env ) diff --git a/wanna.yaml b/wanna.yaml deleted file mode 100644 index db45b43..0000000 --- a/wanna.yaml +++ /dev/null @@ -1,33 +0,0 @@ -wanna_project: - name: wanna-notebook-sample - version: 1 - authors: ["john.doe@example.com", "jane.doe@example.com"] - -gcp_profiles: - - profile_name: default - project_id: cloud-lab-304213 - region: europe-west1 - network: cloud-lab - subnet: cloud-lab - bucket: wanna-ml-west1-jh - zone: europe-west1-b - -docker: - images: - - build_type: local_build_image - name: custom-notebook-container - context_dir: . - dockerfile: Dockerfile.notebook - repository: wanna-samples - cloud_build: true - -managed_notebooks: - - name: thread1-managed - owner: jacek.hebda@avast.com - - name: thread2-managed - owner: jacek.hebda@avast.com - -notebooks: - - name: thread1-notebook - environment: - docker_image_ref: custom-notebook-container