-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (45 loc) · 1.74 KB
/
Copy path_test.yml
File metadata and controls
48 lines (45 loc) · 1.74 KB
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
# Reusable workflow: run one CPU test suite. Called per-package by ci.yml so the pinned action
# SHAs, checkout, and depot caching live in one place. Not triggered on its own.
name: test suite
on:
workflow_call:
inputs:
command:
description: The full julia test command to run.
required: true
type: string
cache-name:
description: >-
Unique name for this suite's Julia depot cache. Required because inside a reusable
workflow github.job is always 'run', so without an explicit name every suite would
share one cache and clobber each other's precompiled Reactant/Lux depot every run.
required: true
type: string
julia-version:
description: Julia version to test on.
required: false
type: string
default: '1.12'
os:
description: Runner operating system for the suite.
required: false
type: string
default: 'ubuntu-latest'
permissions:
contents: read
actions: write # julia-actions/cache prunes its old caches
jobs:
run:
runs-on: ${{ inputs.os }}
timeout-minutes: 60 # generous for the first run's Reactant CPU artifact download + compile
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: julia-actions/setup-julia@fa02766e078afaaf09b14210362cee14137e6a32 # v3.0.2
with:
version: ${{ inputs.julia-version }}
- uses: julia-actions/cache@a45e8fa8be21c18a06b7177052533149e61e9b38 # v3.1.0
with:
cache-name: julia-${{ inputs.cache-name }}
# No REACTANT_GPU env => Reactant selects the CPU artifact; threads come from the command.
- name: Run tests
run: ${{ inputs.command }}