-
Notifications
You must be signed in to change notification settings - Fork 28
54 lines (47 loc) · 1.61 KB
/
nvidia-test.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Nvidia Graphics Tests
on:
# Uncomment this trigger only during workflow development
pull_request:
branches: [ main ]
# Manual trigger
workflow_dispatch:
inputs:
snap-channel:
description: 'Docker snap channel'
required: true
type: string
default: 'latest/edge'
jobs:
test:
runs-on: [self-hosted, testflinger]
env:
GEN_JOB_PATH: ${{ github.workspace }}/generated-job.yaml
TESTFLINGER_DIR: .github/workflows/testflinger
strategy:
fail-fast: true
matrix:
job-queue:
- 202007-28059
# - 202008-2816s7
# - 202112-29789
# noprovision node, for CI testing
# - 202302-31212
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Testflinger job queue
run: |
export JOB_QUEUE="${{ matrix.job-queue }}"
export SNAP_CHANNEL="${{ inputs.snap-channel }}"
envsubst '$JOB_QUEUE' \
< TESTFLINGER_DIR/nvidia-job.yaml \
> $GEN_JOB_PATH
envsubst '$SNAP_CHANNEL' \
< TESTFLINGER_DIR/scripts/setup.sh \
> TESTFLINGER_DIR/scripts/temp.sh
mv TESTFLINGER_DIR/scripts/temp.sh TESTFLINGER_DIR/scripts/setup.sh
- name: Submit Testflinger job
uses: canonical/testflinger/.github/actions/submit@main
with:
poll: true
job-path: ${{ env.GEN_JOB_PATH }}