Skip to content
Draft
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
83 changes: 83 additions & 0 deletions .github/workflows/ci-requirements.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: CI Requirement Checks
on:
push:
branches:
- "**"
workflow_call:
inputs:
runner:
required: false
description: Runner type
default: ubuntu-latest
type: string
outputs:
full_run_required:
description: Whether a full pipeline run is required
value: ${{ jobs.requirements.outputs.full_run_required }}
test_run_required:
description: Whether a test run is required
value: ${{ jobs.requirements.outputs.test_run_required }}
jobs:
requirements:
runs-on: ubuntu-latest
outputs:
full_run_required: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.check_full_run_required.outputs.full_run_required }}
test_run_required: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.check_test_run_required.outputs.test_run_required }}
steps:
- uses: actions/checkout@v6
if: ${{ github.event_name != 'workflow_dispatch' }}
with:
fetch-depth: 0

- name: Check full pipeline run required
id: check_full_run_required
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: dorny/paths-filter@v4
with:
predicate-quantifier: "every"
filters: |
full_run_required:
- "**"
- "!.chart/**"
- "!.github/**"

- name: Check tests run required
id: check_test_run_required
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: dorny/paths-filter@v4
with:
predicate-quantifier: "some"
filters: |
test_run_required:
# Python / Django
- "**.py"
- "requirements*.txt"
- "pyproject.toml"
- "setup.cfg"
- "Pipfile"
- "Pipfile.lock"
- "poetry.lock"
- "uv.lock"
- "tox.ini"
- "pytest.ini"
- "**.html"
- "templates/**"
# JavaScript / TypeScript
- "**.js"
- "**.jsx"
- "**.ts"
- "**.tsx"
- "**.mjs"
- "**.cjs"
- "**.vue"
- "**.svelte"
- "package.json"
- "package-lock.json"
- "yarn.lock"
- "pnpm-lock.yaml"
- "tsconfig*.json"
- "jest.config.*"
- "vitest.config.*"
- "babel.config.*"
- "vite.config.*"
- "webpack.config.*"
Loading