Skip to content

chore(ci): route lint job through python-ci.yml, drop duplicate security job#116

Merged
CybotTM merged 1 commit into
mainfrom
chore/ci-lint-reusable
Jul 20, 2026
Merged

chore(ci): route lint job through python-ci.yml, drop duplicate security job#116
CybotTM merged 1 commit into
mainfrom
chore/ci-lint-reusable

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 20, 2026

Copy link
Copy Markdown
Member

What

Continues moving this repo's CI onto the shared netresearch/.github reusables (the test and security.yml jobs already use them):

  • lint → folds the inline flake8 + mypy job into python-ci.yml@main (run-lint + run-type-check, tests off), mirroring how the test job already calls it. flake8 keeps both passes (blocking select + --exit-zero complexity); mypy stays non-blocking (|| true).
  • securityremoved. It duplicated security.yml, which already runs bandit + pip-audit via the shared python-audit.yml reusable on push/PR/schedule.

Removes this workflow's inline checkout + setup-python for both jobs (-55 / +22).

Why

actions/setup-python was pinned inline in every job, so Renovate opened a per-repo bump PR (#115 was the latest). Routing jobs through reusables maintains those pins once in netresearch/.github.

Not centralized (bespoke — no reusable fits)

build (wheel + twine), docs (README/YAML checks), integration-e2e (CLI e2e), and shell-tests keep their inline steps — python-ci.yml can't express them without misusing its lint/type/test toggles. Their setup-python stays inline, so Renovate will still bump those. Centralizing them would need a new generic "python-command" reusable in netresearch/.github — happy to author one as a follow-up if wanted.

Independent

Uses python-ci.yml@main, already live — no dependency on netresearch/.github#243.

…ity job

- lint: fold the inline flake8 + mypy job into the org-standard
  python-ci.yml reusable (run-lint + run-type-check, tests off), matching
  how the test job already calls it. Removes this workflow's inline
  checkout + setup-python for linting.
- security: remove the inline bandit + pip-audit job — it duplicated
  security.yml, which already runs both via the shared python-audit.yml
  reusable on push/PR/schedule.

flake8 keeps its blocking + exit-zero passes; mypy stays non-blocking.
build/docs/integration-e2e remain bespoke (build, README/YAML checks,
CLI e2e) with no reusable equivalent, so their setup-python stays inline.

Signed-off-by: Sebastian Mendel <sebastian.mendel@netresearch.de>
Copilot AI review requested due to automatic review settings July 20, 2026 06:38
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.59%. Comparing base (cd95f11) to head (c3a788b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #116   +/-   ##
=======================================
  Coverage   72.59%   72.59%           
=======================================
  Files          22       22           
  Lines        3416     3416           
=======================================
  Hits         2480     2480           
  Misses        936      936           
Flag Coverage Δ
unittests 72.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CybotTM
CybotTM merged commit 7e280a0 into main Jul 20, 2026
21 of 22 checks passed
@CybotTM
CybotTM deleted the chore/ci-lint-reusable branch July 20, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants