Skip to content
Merged
Show file tree
Hide file tree
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
22 changes: 2 additions & 20 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,9 @@ on:
branches: [master]
jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ruff
run: pip install ruff
- name: Check formatting
run: ruff format --check .
uses: PolicyEngine/.github/.github/workflows/lint.yml@main
check-changelog:
name: Check changelog fragment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for changelog fragment
run: |
FRAGMENTS=$(find changelog.d -type f ! -name '.gitkeep' | wc -l)
if [ "$FRAGMENTS" -eq 0 ]; then
echo "::error::No changelog fragment found in changelog.d/"
echo "Add one with: echo 'Description.' > changelog.d/\$(git branch --show-current).<type>.md"
echo "Types: added, changed, fixed, removed, breaking"
exit 1
fi
uses: PolicyEngine/.github/.github/workflows/changelog.yml@main
Test:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@ on:
branches: [master]
jobs:
Lint:
runs-on: ubuntu-latest
if: |
(github.repository == 'PolicyEngine/policyengine-ng')
&& (github.event.head_commit.message == 'Update PolicyEngine Nigeria')
steps:
- uses: actions/checkout@v4
- name: Install ruff
run: pip install ruff
- name: Check formatting
run: ruff format --check .
uses: PolicyEngine/.github/.github/workflows/lint.yml@main
versioning:
name: Update versioning
if: |
Expand Down
1 change: 1 addition & 0 deletions changelog.d/use-reusable-workflows.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use org-level reusable GitHub Actions workflows for lint and changelog checks.