Skip to content

Commit

Permalink
Add step to stop endpoint at end of CI run.
Browse files Browse the repository at this point in the history
* Added an env var to specify Python version
* Added a step to shutdown endpoint after tests
  • Loading branch information
yadudoc committed Nov 19, 2024
1 parent 04b5c02 commit 4b4ce34
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/gce_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- opened
- synchronize

env:
PYTHON_VERSION: 3.11

jobs:
main-test-suite:
runs-on: ubuntu-20.04
Expand All @@ -14,15 +17,15 @@ jobs:
steps:
- uses: actions/checkout@master

- name: Set up Python 3.11
- name: Set up Python Environment
uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: ${{ env.PYTHON_VERSION }}

- name: Collect Job Information
id: job-info
run: |
echo "Python Version: 3.11" >> ci_job_info.txt
echo "Python Version: ${{ env.PYTHON_VERSION }} " >> ci_job_info.txt
echo "CI Triggering Event: ${{ github.event_name }}" >> ci_job_info.txt
echo "Triggering Git Ref: ${{ github.ref }}" >> ci_job_info.txt
echo "Triggering Git SHA: ${{ github.sha }}" >> ci_job_info.txt
Expand Down Expand Up @@ -85,11 +88,19 @@ jobs:
make gce_test
ln -s pytest-parsl/parsltest-current test_runinfo
- 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-3.11-${{ steps.job-info.outputs.as-ascii }}-${{ github.sha }}
name: runinfo-${{ env.PYTHON_VERSION }}-${{ steps.job-info.outputs.as-ascii }}-${{ github.sha }}
path: |
runinfo/
pytest-parsl/
Expand Down

0 comments on commit 4b4ce34

Please sign in to comment.