diff --git a/.github/actions/setup-poetry/action.yml b/.github/actions/setup-poetry/action.yml index e180b2e..26f34a1 100644 --- a/.github/actions/setup-poetry/action.yml +++ b/.github/actions/setup-poetry/action.yml @@ -28,12 +28,16 @@ runs: installer-parallel: true plugins: poetry-plugin-export==1.8.0 + - name: Validate lock file + run: poetry check --lock + shell: bash + - name: Load cached venv id: cached-poetry-dependencies uses: actions/cache@v4 with: path: .venv - key: venv-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + key: venv-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('pyproject.toml', 'poetry.lock') }} restore-keys: | venv-${{ runner.os }}-${{ inputs.python-version }}- diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 3965e70..4740245 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -2,10 +2,11 @@ name: validate on: pull_request: - types: [opened, synchronize, reopened, edited] + types: [opened, synchronize, reopened, edited, ready_for_review] jobs: pr-title: + if: github.event.pull_request.draft == false runs-on: ubuntu-latest permissions: pull-requests: write