Skip to content

Commit

Permalink
Updating github action
Browse files Browse the repository at this point in the history
  • Loading branch information
yadudoc committed Nov 25, 2024
1 parent 6d2d413 commit 9eda5ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 30 deletions.
32 changes: 6 additions & 26 deletions .github/gce_test.yaml → .github/workflows/gce_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,16 @@ jobs:
as_ascii="$(echo "${{ github.ref_name }}" | perl -pe "s/[^A-z0-9-]+/-/g; s/^-+|-+\$//g; s/--+/-/g;")"
echo "as-ascii=$as_ascii" >> $GITHUB_OUTPUT
- name: setup virtual env
- name: install dependencies
run: |
make virtualenv
source .venv/bin/activate
- name: make deps clean_coverage
run: |
source .venv/bin/activate
pip3 install .
python3 -m pip install -U pip
python3 -m pip install pre-commit tox globus-compute-endpoint
- name: start globus_compute_endpoint
env:
GLOBUS_COMPUTE_CLIENT_ID: ${{ secrets.GLOBUS_COMPUTE_CLIENT_ID }}
GLOBUS_COMPUTE_CLIENT_SECRET: ${{ secrets.GLOBUS_COMPUTE_SECRET_KEY }}
run: |
source /home/runner/work/parsl/parsl/.venv/bin/activate
globus-compute-endpoint configure default
which globus-compute-endpoint
python3 -c "import globus_compute_sdk; print(globus_compute_sdk.__version__)"
Expand All @@ -67,33 +61,19 @@ 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:
GLOBUS_COMPUTE_CLIENT_ID: ${{ secrets.GLOBUS_COMPUTE_CLIENT_ID }}
GLOBUS_COMPUTE_CLIENT_SECRET: ${{ secrets.GLOBUS_COMPUTE_SECRET_KEY }}
run: |
source /home/runner/work/parsl/parsl/.venv/bin/activate
globus-compute-endpoint stop default
- name: Archive runinfo logs
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: runinfo-${{ env.PYTHON_VERSION }}-${{ steps.job-info.outputs.as-ascii }}-${{ github.sha }}
path: |
runinfo/
pytest-parsl/
ci_job_info.txt
compression-level: 9
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 9eda5ac

Please sign in to comment.