Skip to content

Make workflow and jobs names part of the cache key #72

Make workflow and jobs names part of the cache key

Make workflow and jobs names part of the cache key #72

Workflow file for this run

---
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: "1" # Make tools pretty.
jobs:
check-install:
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
path: action
- run: echo WEEK=$(date +%V) >>$GITHUB_ENV
shell: bash
- uses: ./action
with:
cache-suffix: -${{ env.WEEK }}-${{ github.job }}
- run: uv --version
check-hash-deps-path:
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
path: action
- uses: ./action
with:
cache-suffix: -hash-deps-path-job
cache-dependency-path: "**/LICENSE"
- run: |
uv venv
uv pip install attrs