Skip to content

Commit

Permalink
Fixes to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yadudoc committed Nov 25, 2024
1 parent b3d114d commit 947b7eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/gce_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,15 @@ jobs:
- name: mypy
run: |
tox -e mypy
- name: make test
- name: run tests
env:
GLOBUS_COMPUTE_CLIENT_ID: ${{ secrets.GLOBUS_COMPUTE_CLIENT_ID }}
GLOBUS_COMPUTE_CLIENT_SECRET: ${{ secrets.GLOBUS_COMPUTE_SECRET_KEY }}
run: |
source .venv/bin/activate
export GLOBUS_COMPUTE_ENDPOINT=$(globus-compute-endpoint list | grep default | cut -c 3-38)
echo "GLOBUS_COMPUTE_ENDPOINT = $GLOBUS_COMPUTE_ENDPOINT"
tox -e mypy
tox -e py
- name: stop globus_compute_endpoint
env:
Expand Down
7 changes: 3 additions & 4 deletions globus_compute_executor/executor.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from __future__ import annotations

import copy
import uuid
from concurrent.futures import Future
from typing import Any, Callable

from globus_compute_sdk import Executor
from parsl.executors.base import ParslExecutor
from parsl.utils import RepresentationMixin

UUID_LIKE_T = uuid.UUID | str


class GlobusComputeExecutor(ParslExecutor, RepresentationMixin):
"""GlobusComputeExecutor is a plug-in for Parsl that enables remote task submission
Expand Down Expand Up @@ -76,7 +75,7 @@ def submit(
func: Callable,
resource_specification: dict[str, Any],
*args: Any,
**kwargs: Any
**kwargs: Any,
) -> Future:
"""Submit func to globus-compute
Expand Down

0 comments on commit 947b7eb

Please sign in to comment.