Skip to content

Commit

Permalink
fix Bohrium tests (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz committed Oct 20, 2023
1 parent f844a52 commit 16fb0f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-bohrium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
if: github.repository_owner == 'deepmodeling' && (github.event.label.name == 'Test Bohrium' || github.event_name == 'push')
steps:
- uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_run_submission_bohrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setUp(self):
remote_profile={
"email": os.environ["BOHRIUM_EMAIL"],
"password": os.environ["BOHRIUM_PASSWORD"],
"project_id": os.environ["BOHRIUM_PROJECT_ID"],
"project_id": int(os.environ["BOHRIUM_PROJECT_ID"]),
"input_data": {
"job_type": "indicate",
"log_file": "log",
Expand Down Expand Up @@ -54,12 +54,12 @@ def setUp(self):
accessKey={accesskey}
"""
).format(accesskey=os.environ["BOHRIUM_ACCESS_KEY"])
Path.home().joinpath(".bohrium").write_text(bohrium_config)
Path.home().joinpath(".brmconfig").write_text(bohrium_config)
self.machine_dict.update(
batch_type="OpenAPI",
context_type="OpenAPI",
remote_profile={
"project_id": os.environ["BOHRIUM_PROJECT_ID"],
"project_id": int(os.environ["BOHRIUM_PROJECT_ID"]),
"machine_type": "c2_m4_cpu",
"platform": "ali",
"image_address": "registry.dp.tech/dptech/ubuntu:22.04-py3.10",
Expand Down

0 comments on commit 16fb0f1

Please sign in to comment.