Skip to content

Commit 7c92e5d

Browse files
test flow improved
1 parent 0e49d3a commit 7c92e5d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,18 @@ jobs:
110110
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 # v0.8.1
111111
with:
112112
environments: ${{ matrix.environment }}
113+
- name: Get cache week key
114+
id: cache-week
115+
run: echo "week=$(date +%Y-W%V)" >> $GITHUB_OUTPUT
116+
shell: bash
117+
- name: Cache test index
118+
uses: actions/cache@v4
119+
with:
120+
path: ~/.holoviz-mcp-test
121+
key: holoviz-mcp-test-index-${{ runner.os }}-${{ hashFiles('src/holoviz_mcp/config/config.yaml') }}-${{ steps.cache-week.outputs.week }}
122+
restore-keys: |
123+
holoviz-mcp-test-index-${{ runner.os }}-${{ hashFiles('src/holoviz_mcp/config/config.yaml') }}-
124+
holoviz-mcp-test-index-${{ runner.os }}-
113125
- name: Install repository
114126
run: pixi run -e ${{ matrix.environment }} postinstall
115127
- name: Run pytest

0 commit comments

Comments
 (0)