This check was previously only running on PRs to master, which makes it annoying to stack PRs and have all the checks run. Update it so that the check runs on all PRs and on pushes to master.
26 lines
492 B
YAML
26 lines
492 B
YAML
name: Verify Dunder __init__.py Files
|
|
|
|
on:
|
|
pull_request:
|
|
merge_group:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
verify_dunder_init:
|
|
name: Verify __init__.py Files
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out branch
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Ensure git is installed
|
|
run: |
|
|
sudo apt-get update && sudo apt-get install git
|
|
|
|
- name: Verify __init__.py files exist
|
|
run: |
|
|
scripts/verify-dunder-init.sh
|