Skip to content

Commit 792e5cf

Browse files
committed
Port test-gpu.yml to Open-Athena/ec2 runner
1 parent 227c5a7 commit 792e5cf

4 files changed

Lines changed: 16 additions & 114 deletions

File tree

.github/workflows/aws-runner-start.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/aws-runner-stop.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/test-gpu.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@ on:
1111
permissions:
1212
id-token: write # This is required for interacting with AWS via OIDC
1313
contents: read # This is required for actions/checkout
14-
jobs:
15-
start-aws-runner:
16-
uses: ./.github/workflows/aws-runner-start.yml
17-
secrets:
18-
AWS_ROLE: ${{ secrets.AWS_ROLE }}
19-
GH_SA_TOKEN: ${{ secrets.GH_SA_TOKEN }}
2014

15+
jobs:
16+
ec2:
17+
uses: Open-Athena/ec2/.github/workflows/runner.yml@main
18+
secrets: inherit
2119
run-tests:
22-
needs: start-aws-runner
23-
runs-on: ${{ fromJSON(needs.start-aws-runner.outputs.instances) }}
20+
needs: ec2
21+
runs-on: ${{ needs.ec2.outputs.instance }}
2422
steps:
2523
- name: Check out code
2624
uses: actions/checkout@v2
@@ -46,15 +44,3 @@ jobs:
4644

4745
- name: Run pytest
4846
run: uv run --locked pytest -n 2 -v -m "not manual and cuda"
49-
50-
stop-aws-runner:
51-
uses: ./.github/workflows/aws-runner-stop.yml
52-
needs:
53-
- start-aws-runner
54-
- run-tests
55-
if: ${{ always() }}
56-
with:
57-
instance_mapping: ${{ needs.start-aws-runner.outputs.mapping }}
58-
secrets:
59-
AWS_ROLE: ${{ secrets.AWS_ROLE }}
60-
GH_SA_TOKEN: ${{ secrets.GH_SA_TOKEN }}

.secrets.baseline

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@
123123
}
124124
],
125125
"results": {
126+
".github/workflows/test-gpu.yml": [
127+
{
128+
"type": "Secret Keyword",
129+
"filename": ".github/workflows/test-gpu.yml",
130+
"hashed_secret": "3e26d6750975d678acb8fa35a0f69237881576b0",
131+
"is_verified": false,
132+
"line_number": 18
133+
}
134+
],
126135
"notebooks/Model_Analysis_Compare.py": [
127136
{
128137
"type": "Base64 High Entropy String",
@@ -133,5 +142,5 @@
133142
}
134143
]
135144
},
136-
"generated_at": "2025-06-30T17:27:31Z"
145+
"generated_at": "2025-07-18T04:33:42Z"
137146
}

0 commit comments

Comments
 (0)