Skip to content

Commit e25ff43

Browse files
committed
add outputs
1 parent 401c531 commit e25ff43

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/actions/setup-test-env/action.yml

+10
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ inputs:
66
default: "3.10"
77
description: "Python version to test."
88

9+
outputs:
10+
python-version:
11+
description: "Installed Python version."
12+
value: ${{ inputs.python-version }}
13+
bokeh-version:
14+
description: "Installed bokeh version."
15+
value: ${{ steps.tests.outputs.bokeh-version }}
16+
917
runs:
1018
using: composite
1119

@@ -52,10 +60,12 @@ runs:
5260
run: conda list
5361

5462
- name: Checkout bokeh tests
63+
id: tests
5564
shell: bash -el {0}
5665
working-directory: ./tests/bokeh
5766
run: |
5867
BOKEH_VERSION=$(conda list --json | jq --raw-output '.[] | select(.name=="bokeh").version')
68+
echo "bokeh-version=${BOKEH_VERSION}" | tee --append "${GITHUB_OUTPUT}"
5969
git checkout "${BOKEH_VERSION}"
6070
6171
- name: Apply test patches

.github/workflows/test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Setup environment
18+
id: setup
1819
uses: ./.github/actions/setup-test-env
1920

2021
- name: Restore test cache
2122
id: cache
2223
uses: actions/cache@v4
2324
with:
2425
path: ./.bokeh_fastapi_cache
25-
key: test-${{ runner.os }}-${{ runner.arch }}|${{}}-${{}}
26+
key: test-${{ runner.os }}-${{ runner.arch }}|${{ steps.setup.outputs.python-version }}-${{ steps.setup.outputs.bokeh-version }}
2627
restore-keys: test-${{ runner.os }}-${{ runner.arch }}
2728

2829
- name: Create test cache

0 commit comments

Comments
 (0)