Skip to content

Commit 3bbfe96

Browse files
committed
ci: update action inputs, bump deps, and improve ollama health check
Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
1 parent c42a164 commit 3bbfe96

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ runs:
1212
shell: bash
1313
run: |
1414
sleep 10
15-
time curl -i http://localhost:11434
15+
curl --include --retry 10 --retry-delay 10 --retry-connrefused http://localhost:11434
16+
1617
1718
- name: Pull Granite models
1819
shell: bash

.github/actions/python_setup/action.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,31 @@ inputs:
55
python-version:
66
description: 'Python version, supporting MAJOR.MINOR only'
77
required: true
8-
type: string
98
uv-version:
109
description: 'uv version, default latest'
1110
required: false
12-
type: string
1311
default: 'latest'
1412
enable-cache:
1513
description: 'Enable caching uv cache, default true'
1614
required: false
17-
type: boolean
18-
default: true
15+
default: 'true'
1916
save-cache:
2017
description: 'Save the uv cache, false if pull_request'
2118
required: false
22-
type: boolean
2319
default: ${{ github.event_name != 'pull_request' }}
2420

2521
runs:
2622
using: "composite"
2723
steps:
2824
- name: 'Setup Python ${{ inputs.python-version }}'
2925
id: setup-python
30-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
26+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
3127
with:
3228
python-version: ${{ inputs.python-version }}
3329

3430
- name: 'Setup uv ${{ inputs.uv-version }}'
3531
id: setup-uv
36-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
32+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
3733
with:
3834
python-version: ${{ steps.setup-python.outputs.python-version }}
3935
version: ${{ inputs.uv-version }}

.github/dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ updates:
77
- package-ecosystem: "github-actions"
88
directories:
99
- "/"
10-
- ".github/actions"
10+
- ".github/actions/ollama-setup"
11+
- ".github/actions/python_setup"
1112
schedule:
1213
interval: "daily"
1314
cooldown:

.github/workflows/actionlint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ on:
77
- "main"
88
paths:
99
- '.github/workflows/*.ya?ml'
10+
- '.github/actions/**/action.ya?ml'
1011
- '.github/zizmor.ya?ml'
1112
- '.poutine.ya?ml'
1213
pull_request:
1314
branches:
1415
- "main"
1516
paths:
1617
- '.github/workflows/*.ya?ml'
18+
- '.github/actions/**/action.ya?ml'
1719
- '.github/zizmor.ya?ml'
1820
- '.poutine.ya?ml'
1921

0 commit comments

Comments
 (0)