forked from pulp-platform/Deeploy
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.16 KB
/
TestRunnerSiracusa.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
name: TestRunnerSiracusa
on:
workflow_call:
inputs:
test-names:
required: true
type: string
num-cores:
required: true
type: number
jobs:
test-runner-siracusa:
runs-on: ubuntu-22.04
container:
image: ghcr.io/pulp-platform/deeploy:main
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Deeploy
run: pip install -e .
- name: Cache ccache
id: ccache-cache
uses: actions/cache@v4
with:
path: /app/.ccache
key: ${{ runner.os }}-ccache
- name: Run Test
run: |
testNames="${{ inputs.test-names }}"
cd DeeployTest
mkdir -p /app/.ccache
export CCACHE_DIR=/app/.ccache
source /app/install/pulp-sdk/configs/siracusa.sh
echo "$testNames" | while IFS= read -r testName; do
if [[ -n "$testName" ]]; then
echo "Running test: $testName"
python testRunner_siracusa.py -t Tests/$testName --cores=${{ inputs.num-cores }}
fi
done
shell: bash