-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (38 loc) · 1.22 KB
/
manual_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Check GH Runner
on:
workflow_dispatch:
repository_dispatch:
types: [successful_release]
jobs:
pre-job-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
role-to-assume: ${{ secrets.AWS_ECS_RUN_TASK_ROLE }}
role-duration-seconds: 900
- name: Provide a self hosted to execute this job
uses: PasseiDireto/gh-runner-task-action@main
with:
github_pat: ${{ secrets.PD_BOT_GITHUB_ACCESS_TOKEN }}
task_definition: "gh-runner"
cluster: "gh-runner"
task_count: 3
runs-dummy-action:
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
version: [3.7, 3.8, 3.9]
needs: pre-job-test
container: python:${{ matrix.version }}-slim
steps:
- name: Checkout code
uses: actions/checkout@v3
- run: python --version