Skip to content

Commit fec2c0c

Browse files
committed
remove task for installing sdv_enterprise
1 parent cfa1c2e commit fec2c0c

File tree

4 files changed

+2
-49
lines changed

4 files changed

+2
-49
lines changed

.github/workflows/run_benchmark_multi_table.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
source venv/bin/activate
3232
3333
python -m pip install --upgrade pip
34-
python -m pip install invoke
35-
invoke install-sdv-enterprise
34+
python -m pip install sdv-enterprise --index-url "https://${USERNAME}:${LICENSE_KEY}@pypi.datacebo.com"
3635
python -m pip install "sdgym[all] @ git+https://github.com/sdv-dev/SDGym.git@issue-516-add-workflows"
3736
3837
echo "VIRTUAL_ENV=$(pwd)/venv" >> $GITHUB_ENV

.github/workflows/run_benchmark_single_table.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ jobs:
2828
source venv/bin/activate
2929
3030
python -m pip install --upgrade pip
31-
python -m pip install invoke
32-
invoke install-sdv-enterprise
31+
python -m pip install sdv-enterprise --index-url "https://${USERNAME}:${LICENSE_KEY}@pypi.datacebo.com"
3332
python -m pip install "sdgym[all] @ git+https://github.com/sdv-dev/SDGym.git@issue-516-add-workflows"
3433
3534
echo "VIRTUAL_ENV=$(pwd)/venv" >> $GITHUB_ENV

tasks.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -219,22 +219,3 @@ def notify_sdgym_benchmark_uploaded(c, folder_name, commit_url=None, modality='s
219219

220220
post_benchmark_uploaded_message(folder_name, commit_url, modality)
221221

222-
@task
223-
def install_sdv_enterprise(c, username=None, license_key=None):
224-
"""Install sdv-enterprise using sdv-installer if credentials are available."""
225-
from sdgym._benchmark.credentials_utils import sdv_install_cmd
226-
227-
username = username or os.getenv("SDV_ENTERPRISE_USERNAME")
228-
license_key = license_key or os.getenv("SDV_ENTERPRISE_LICENSE_KEY")
229-
credentials = {
230-
"sdv": {
231-
"username": username,
232-
"license_key": license_key,
233-
}
234-
}
235-
236-
install_cmd = sdv_install_cmd(credentials)
237-
if install_cmd:
238-
c.run(install_cmd)
239-
else:
240-
print("No sdv-enterprise credentials found. Skipping installation.")

tests/test_tasks.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
"""Tests for the ``tasks.py`` file."""
22

3-
from unittest.mock import Mock, patch
4-
53
from tasks import (
64
_get_extra_dependencies,
75
_get_minimum_versions,
86
_resolve_version_conflicts,
9-
install_sdv_enterprise,
107
)
118

129

@@ -212,26 +209,3 @@ def test__resolve_version_conflicts_pointing_to_branch():
212209
'rdt==1.1.2',
213210
'copulas==0.12.0',
214211
])
215-
216-
217-
@patch('tasks.sdv_install_cmd')
218-
def test_install_sdv_enterprise(mock_sdv_install_cmd):
219-
"""Test the `install_sdv_enterprise` task."""
220-
# Setup
221-
username = 'test_user'
222-
license_key = 'test_license_key'
223-
mock_sdv_install_cmd.return_value = 'install command'
224-
mock_context = Mock()
225-
226-
# Run
227-
install_sdv_enterprise(mock_context, username=username, license_key=license_key)
228-
229-
# Assert
230-
mock_sdv_install_cmd.assert_called_once_with({
231-
'sdv': {
232-
'username': username,
233-
'license_key': license_key,
234-
}
235-
})
236-
mock_context.run.assert_called_once_with('install command')
237-
assert False

0 commit comments

Comments
 (0)