Skip to content

Bump cspell from 8.2.4 to 8.3.1 (#171) #287

Bump cspell from 8.2.4 to 8.3.1 (#171)

Bump cspell from 8.2.4 to 8.3.1 (#171) #287

Workflow file for this run

name: Default
on: push
jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
- uses: Gr1N/setup-poetry@v8
- uses: actions/[email protected]
id: cache
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Ensure Cache Is Healthy
if: runner.os != 'Windows' && steps.cache.outputs.cache-hit == 'true'
run: poetry run pip --version > /dev/null 2>&1 || rm -rf .venv
- run: poetry install -vv --remove-untracked
- uses: pre-commit/[email protected]
test-local-action-miss:
name: Test Local Action With Cache Miss
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, '3.10', 3.11]
steps:
- uses: actions/checkout@v4
- id: local-action
uses: ./
with:
cache-key-suffix: ${{ github.run_number }}
python-version: ${{ matrix.python-version }}
- name: check outputs.python-version
env:
MATRIX_PYTHON_VERSION: ${{ matrix.python-version }}
OUTPUTS_PYTHON_VERSION: ${{ steps.local-action.outputs.python-version }}
if: '!startsWith(steps.local-action.outputs.python-version, matrix.python-version)'
run: |
echo "outputs.python-version=${OUTPUTS_PYTHON_VERSION}"
echo "matrix.python-version=${MATRIX_PYTHON_VERSION}"
exit 1
- name: check outputs.cache-hit (miss)
env:
CACHE_HIT_VALUE: ${{ steps.local-action.outputs.cache-hit }}
if: steps.local-action.outputs.cache-hit == 'true'
run: |
echo "outputs.cache-hit=${CACHE_HIT_VALUE}"
exit 1
- name: check poetry
run: poetry --version
- name: ensure pre-commit is installed
run: poetry run pre-commit sample-config
test-local-action-hit:
# This has to be run after the miss as the cache is not uploaded until the
# the job is finished.
name: Test Local Action With Cache Hit
needs: test-local-action-miss
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, '3.10', 3.11]
steps:
- uses: actions/checkout@v4
- id: local-action
uses: ./
with:
cache-key-suffix: ${{ github.run_number }}
poetry-install: false
python-version: ${{ matrix.python-version }}
- name: check outputs.cache-hit (hit)
env:
CACHE_HIT_VALUE: ${{ steps.local-action.outputs.cache-hit }}
if: steps.local-action.outputs.cache-hit != 'true'
run: |
echo "outputs.cache-hit=${CACHE_HIT_VALUE}"
exit 1
- name: ensure pre-commit is installed
run: poetry run pre-commit sample-config