Skip to content

Commit 695d4d2

Browse files
authored
Merge pull request #173 from IBM/workflow-updates
Workflow updates
2 parents f6bd63a + a5c9823 commit 695d4d2

10 files changed

Lines changed: 27 additions & 9 deletions

File tree

.github/actions/ollama-setup/action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
name: 'Additional Test Setup'
24
description: 'Additional Test Setup for Ollama'
35
runs:
@@ -12,7 +14,7 @@ runs:
1214
shell: bash
1315
run: |
1416
sleep 10
15-
time curl -i http://localhost:11434
17+
curl --include --retry 10 --retry-delay 10 --retry-connrefused http://localhost:11434
1618
1719
- name: Pull Granite models
1820
shell: bash

.github/actions/python_setup/action.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,37 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
name: 'python_setup'
24
description: 'Setup for Python and uv'
35

46
inputs:
57
python-version:
68
description: 'Python version, supporting MAJOR.MINOR only'
79
required: true
8-
type: string
910
uv-version:
1011
description: 'uv version, default latest'
1112
required: false
12-
type: string
1313
default: 'latest'
1414
enable-cache:
1515
description: 'Enable caching uv cache, default true'
1616
required: false
17-
type: boolean
18-
default: true
17+
default: 'true'
1918
save-cache:
2019
description: 'Save the uv cache, false if pull_request'
2120
required: false
22-
type: boolean
2321
default: ${{ github.event_name != 'pull_request' }}
2422

2523
runs:
2624
using: "composite"
2725
steps:
2826
- name: 'Setup Python ${{ inputs.python-version }}'
2927
id: setup-python
30-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
28+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
3129
with:
3230
python-version: ${{ inputs.python-version }}
3331

3432
- name: 'Setup uv ${{ inputs.uv-version }}'
3533
id: setup-uv
36-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
34+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
3735
with:
3836
python-version: ${{ steps.setup-python.outputs.python-version }}
3937
version: ${{ inputs.uv-version }}

.github/dependabot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
# GitHub Dependabot configuration file
24
version: 2
35
updates:
46
# Maintain dependencies for GitHub Actions
57
- package-ecosystem: "github-actions"
68
directories:
79
- "/"
8-
- ".github/actions"
10+
- ".github/actions/ollama-setup"
11+
- ".github/actions/python_setup"
912
schedule:
1013
interval: "daily"
1114
cooldown:

.github/pinact.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
version: 3
24
min_age: # cooldown
35
value: 7

.github/workflows/actionlint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
name: Lint GitHub Actions workflows
4+
45
on:
56
push:
67
branches:
78
- "main"
89
paths:
910
- '.github/workflows/*.ya?ml'
11+
- '.github/actions/**/action.ya?ml'
1012
- '.github/zizmor.ya?ml'
1113
- '.poutine.ya?ml'
1214
pull_request:
1315
branches:
1416
- "main"
1517
paths:
1618
- '.github/workflows/*.ya?ml'
19+
- '.github/actions/**/action.ya?ml'
1720
- '.github/zizmor.ya?ml'
1821
- '.poutine.ya?ml'
1922

.github/workflows/lint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
name: Lint
24

35
on:

.github/workflows/notebooks.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ on:
1717
- main
1818
paths:
1919
- '.github/workflows/notebooks.ya?ml' # This workflow
20+
- '.github/actions/**' # Possibly used by this workflow
2021
- '.github/notebook_lists/*' # Notebook lists
2122
- 'notebooks/**/*.ipynb'
2223
pull_request:
2324
branches:
2425
- main
2526
paths:
2627
- '.github/workflows/notebooks.ya?ml' # This workflow
28+
- '.github/actions/**' # Possibly used by this workflow
2729
- '.github/notebook_lists/*' # Notebook lists
2830
- 'notebooks/**/*.ipynb'
2931

.github/workflows/publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
name: Publish website
24

35
on:

.github/workflows/spellcheck.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
name: Spellcheck
24

35
on:

.github/zizmor.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
rules:
24
unpinned-uses:
35
config:

0 commit comments

Comments
 (0)