From 194e0ab22215e6e485c335d350d55ba3a83a3697 Mon Sep 17 00:00:00 2001 From: Joss Moffatt Date: Sun, 12 Nov 2023 21:41:23 +0000 Subject: [PATCH 1/4] :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" From 04ca882b429ae63af9e99203442eead5f06de446 Mon Sep 17 00:00:00 2001 From: Joss Moffatt Date: Sun, 12 Nov 2023 21:46:34 +0000 Subject: [PATCH 2/4] :construction_worker: Add default value for mutation testing cache (#32) * :construction_worker: Add default value for mutation testing cache * :construction_worker: Add default value for mutation testing cache --- .github/workflows/cicd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index d3acb1b..ba3f7cc 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -39,7 +39,7 @@ jobs: path: .mutmut-cache key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }} restore-keys: | - mutmut-cache-${{ github.head_ref }} + mutmut-cache-${{ github.head_ref || 'main'}} mutmut-cache-main - name: 🦠 Run Mutation Tests From 5397fb5eda0246674ced1195ccdae93e7388cf25 Mon Sep 17 00:00:00 2001 From: jossmoff Date: Sun, 12 Nov 2023 21:50:05 +0000 Subject: [PATCH 3/4] :construction_worker: Fixing mutation Testing pipeline --- .github/workflows/cicd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index ba3f7cc..04de533 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -39,7 +39,7 @@ jobs: path: .mutmut-cache key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }} restore-keys: | - mutmut-cache-${{ github.head_ref || 'main'}} + mutmut-cache-${{ github.ref_name || 'main'}} mutmut-cache-main - name: 🦠 Run Mutation Tests From 51199b66a2bcd312934c0d883c479bf71504f03f Mon Sep 17 00:00:00 2001 From: jossmoff Date: Sun, 12 Nov 2023 21:57:16 +0000 Subject: [PATCH 4/4] :construction_worker: Fixing mutation testing pipeline --- .github/workflows/cicd.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 04de533..5b0c38c 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -37,9 +37,9 @@ jobs: uses: actions/cache/restore@v3 with: path: .mutmut-cache - key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }} + key: mutmut-cache-${{ github.ref_name }}-${{ hashFiles('bookshelf/*.py') }} restore-keys: | - mutmut-cache-${{ github.ref_name || 'main'}} + mutmut-cache-${{ github.ref_name }} mutmut-cache-main - name: 🦠 Run Mutation Tests @@ -57,4 +57,4 @@ jobs: uses: actions/cache/save@v3 with: path: .mutmut-cache - key: mutmut-cache-${{ github.head_ref }}-${{ hashFiles('bookshelf/*.py') }} + key: mutmut-cache-${{ github.ref_name }}-${{ hashFiles('bookshelf/*.py') }}