Skip to content

Commit b159298

Browse files
DaveSkenderclaude
andcommitted
ci: rename to ci.yml and add lint-and-test gate
Rename lint-code.yml to ci.yml, add a `pull_request` trigger (required checks must run on PRs), and add a `lint-and-test` aggregator job that `needs: [build]`. The pylint job uses a matrix, which would otherwise only produce per-version check contexts; the aggregator yields a single `lint-and-test` context to satisfy the facioquo org ruleset. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 231ecc3 commit b159298

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
name: Pylint
1+
name: CI
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
46

57
jobs:
68
build:
@@ -27,3 +29,14 @@ jobs:
2729
- name: Analysing the code with pylint
2830
run: |
2931
pylint $(git ls-files '*.py')
32+
33+
lint-and-test:
34+
runs-on: ubuntu-latest
35+
needs: [build]
36+
if: always()
37+
steps:
38+
- name: Verify required jobs succeeded
39+
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
40+
run: |
41+
echo "One or more required jobs did not succeed."
42+
exit 1

0 commit comments

Comments
 (0)