From 194e0ab22215e6e485c335d350d55ba3a83a3697 Mon Sep 17 00:00:00 2001 From: Joss Moffatt Date: Sun, 12 Nov 2023 21:41:23 +0000 Subject: [PATCH] :construction_worker: Improve mutation testing caching (#31) * :construction_worker: Updating caching to have extra restore keys * :bookmark: Bumping version * :bookmark: Bumping version * :bookmark: Bumping version --- .github/workflows/cicd.yaml | 7 +++++-- bookshelf/__init__.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 6f0aa62..d3acb1b 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -37,7 +37,10 @@ jobs: uses: actions/cache/restore@v3 with: path: .mutmut-cache - key: ${{ runner.os }}-mutmut-cache-${{ hashFiles('bookshelf/*.py') }} + key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }} + restore-keys: | + mutmut-cache-${{ github.head_ref }} + mutmut-cache-main - name: 🦠 Run Mutation Tests run: | @@ -54,4 +57,4 @@ jobs: uses: actions/cache/save@v3 with: path: .mutmut-cache - key: ${{ runner.os }}-mutmut-cache-${{ hashFiles('bookshelf/*.py') }} + key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }} diff --git a/bookshelf/__init__.py b/bookshelf/__init__.py index 493f741..e19434e 100644 --- a/bookshelf/__init__.py +++ b/bookshelf/__init__.py @@ -1 +1 @@ -__version__ = "0.3.0" +__version__ = "0.3.3"