Skip to content

Commit

Permalink
check in both places
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Jan 30, 2025
1 parent 67a7d14 commit 5752448
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check_wheel_availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ concurrency:
cancel-in-progress: true

jobs:
check-allow-dev-deps:
uses: ./.github/workflows/reflow-check-allow-dev-deps.yml

check_dependency_artifacts:
name: ${{ matrix.os.name }} ${{ matrix.arch.name }} ${{ matrix.python-version }}
if: ${{ !contains( github.event.pull_request.labels.*.name, 'allow-dev-deps') }}
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/reflow-check-allow-dev-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 🚨 Check allow-dev-deps label

on:
workflow_call:
inputs:
concurrency-name:
required: true
type: string

concurrency:
# SHA is added to the end if on `main` to let all main workflows run
group: ${{ github.ref }}-${{ github.workflow }}-${{ inputs.concurrency-name }}-${{ github.event_name }}-${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
cancel-in-progress: true

jobs:
check-labels:
runs-on: ubuntu-latest
steps:
- name: check banned labels
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 0
labels: "allow-dev-deps"
3 changes: 3 additions & 0 deletions .github/workflows/test-install-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ concurrency:
cancel-in-progress: true

jobs:
check-allow-dev-deps:
uses: ./.github/workflows/reflow-check-allow-dev-deps.yml

test_scripts:
name: Native ${{ matrix.os.emoji }} ${{ matrix.arch.emoji }} ${{ matrix.development.name }} - ${{ matrix.editable.name }}
if: ${{ !contains( github.event.pull_request.labels.*.name, 'allow-dev-deps') }}
Expand Down

0 comments on commit 5752448

Please sign in to comment.