Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ jobs:
name: Cache identify
outputs:
cache-key: ${{ steps.set-key.outputs.cache-key }}
python-version: ${{ steps.python.outputs.python-version}} # Ensure all runners use THIS minor version
steps:
- name: Check out committed code
uses: actions/checkout@v5
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
- name: Set up Python and determine minor version for ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v5
with:
Expand All @@ -50,7 +51,7 @@ jobs:
with:
cache-key: ${{ needs.cache.outputs.cache-key }}
fail-on-miss: false # First time create cache (if not already exists)
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ needs.cache.outputs.python-version }}
venv-dir: ${{ env.VENV }}
precommit-home: ${{ env.PRE_COMMIT_HOME }}

Expand All @@ -70,7 +71,7 @@ jobs:
uses: plugwise/gh-actions/restore-venv@v1
with:
cache-key: ${{ needs.cache.outputs.cache-key }}
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ needs.cache.outputs.python-version}}
venv-dir: ${{ env.VENV }}
precommit-home: ${{ env.PRE_COMMIT_HOME }}
- name: Ruff (with fix)
Expand Down Expand Up @@ -106,7 +107,7 @@ jobs:
uses: plugwise/gh-actions/restore-venv@v1
with:
cache-key: ${{ needs.cache.outputs.cache-key }}
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ needs.cache.outputs.python-version}}
venv-dir: ${{ env.VENV }}
precommit-home: ${{ env.PRE_COMMIT_HOME }}
- name: Verify commit
Expand Down Expand Up @@ -136,12 +137,17 @@ jobs:
steps:
- name: Check out committed code
uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
id: python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Restore cached environment
id: cache-reuse
uses: plugwise/gh-actions/restore-venv@v1
with:
cache-key: ${{ needs.cache.outputs.cache-key }}
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ steps.python.outputs.python-version }} # Force to installed python minor$
venv-dir: ${{ env.VENV }}
precommit-home: ${{ env.PRE_COMMIT_HOME }}
- name: Run all tests
Expand Down Expand Up @@ -173,7 +179,7 @@ jobs:
uses: plugwise/gh-actions/restore-venv@v1
with:
cache-key: ${{ needs.cache.outputs.cache-key }}
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ needs.cache.outputs.python-version}}
venv-dir: ${{ env.VENV }}
precommit-home: ${{ env.PRE_COMMIT_HOME }}
- name: Run mypy
Expand Down Expand Up @@ -218,7 +224,7 @@ jobs:
uses: plugwise/gh-actions/restore-venv@v1
with:
cache-key: ${{ needs.cache.outputs.cache-key }}
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ needs.cache.outputs.python-version}}
venv-dir: ${{ env.VENV }}
precommit-home: ${{ env.PRE_COMMIT_HOME }}
- name: Download all coverage artifacts
Expand Down Expand Up @@ -296,7 +302,7 @@ jobs:
uses: plugwise/gh-actions/restore-venv@v1
with:
cache-key: ${{ needs.cache.outputs.cache-key }}
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ needs.cache.outputs.python-version}}
venv-dir: ${{ env.VENV }}
precommit-home: ${{ env.PRE_COMMIT_HOME }}
- name: Run complexity report (click to view details)
Expand Down
Loading