-
Notifications
You must be signed in to change notification settings - Fork 2
88 lines (82 loc) · 3.2 KB
/
CheckCompatBounds.yml
File metadata and controls
88 lines (82 loc) · 3.2 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: "CheckCompatBounds"
on:
workflow_call:
inputs:
julia-version:
description: "Julia version used to instantiate the workspace and run the check."
default: "1"
required: false
type: string
project:
description: "Deprecated alias for `subdir`. Value passed to Julia's `--project` flag during buildpkg. When `subdir` is set, it takes precedence."
default: '@.'
required: false
type: string
subdir:
description: "Subdirectory containing the package's Project.toml. When set, both buildpkg's `--project` and the check-compat-bounds workspace-root resolve to `<subdir>`. Empty (default) uses repo root."
default: ""
required: false
type: string
cache:
description: "Use the julia-actions/cache action for caching."
default: true
required: false
type: boolean
buildpkg:
description: "Use the julia-actions/julia-buildpkg action to instantiate before the check."
default: true
required: false
type: boolean
localregistry:
description: "Add local registries hosted on GitHub. Specified by providing the url (https/ssh) to the repositories as a newline (\n) separated list."
default: ""
required: false
type: string
timeout-minutes:
description: "The maximum time in minutes that the job can run."
default: 30
required: false
type: number
run-on-draft:
description: "When true, run the check even on draft PRs."
default: true
required: false
type: boolean
mode:
description: "When to run the check: 'always' (every invocation), 'never' (skip), or 'auto' (run only when the PR author is CompatHelper or Dependabot). Matches julia-actions/julia-runtest's 'force_latest_compatible_version: auto' semantics."
default: "always"
required: false
type: string
workspace-root:
description: "Path to the workspace root (containing Project.toml and Manifest.toml)."
default: "."
required: false
type: string
jobs:
check-compat-bounds:
name: "CheckCompatBounds"
if: "${{ !github.event.pull_request.draft || inputs.run-on-draft }}"
runs-on: "ubuntu-latest"
timeout-minutes: ${{ inputs.timeout-minutes }}
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: "Setup Julia ${{ inputs.julia-version }}"
uses: julia-actions/setup-julia@v3
with:
version: "${{ inputs.julia-version }}"
- uses: julia-actions/cache@v3
if: "${{ inputs.cache }}"
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- uses: julia-actions/julia-buildpkg@v1
if: "${{ inputs.buildpkg }}"
with:
localregistry: "${{ inputs.localregistry }}"
project: "${{ inputs.subdir != '' && inputs.subdir || inputs.project }}"
- name: "Check compat upper bounds"
uses: ITensor/ITensorActions/.github/actions/check-compat-bounds@main
with:
workspace-root: "${{ inputs.subdir != '' && inputs.subdir || inputs.workspace-root }}"
mode: "${{ inputs.mode }}"