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
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@ on:
pull_request:
branches: [main]

# A new push to a pull request supersedes the run on its previous head, so
# cancel that run instead of letting it wait for, then hold, runners the whole
# PolicyEngine org shares (60 concurrent jobs on the GitHub Team plan). Pushes
# to main get a group of their own per run, so they are never cancelled.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
Expand All @@ -21,6 +30,9 @@ jobs:

test:
runs-on: ubuntu-latest
# Slowest of 12 successful runs, 2026-10-05..08: 7.2 minutes. Fail a hung
# job instead of holding a shared runner for GitHub's 6-hour default.
timeout-minutes: 30
steps:
- uses: actions/checkout@v6
with:
Expand All @@ -36,6 +48,7 @@ jobs:

app:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: app
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/paper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,19 @@ on:
- "uv.lock"
- ".github/workflows/paper.yml"

# A new push to a pull request supersedes the run on its previous head, so
# cancel that run instead of letting it wait for, then hold, runners the whole
# PolicyEngine org shares (60 concurrent jobs on the GitHub Team plan). Pushes
# to main get a group of their own per run, so they are never cancelled.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
paper:
runs-on: ubuntu-latest
# Slowest of 12 successful runs, 2026-10-05..08: 2.0 minutes.
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
Expand Down
Loading