Skip to content

CI: split lint into separate job (run once instead of 18× per-matrix-cell)#660

Open
ryan-williams wants to merge 1 commit intotreeverse:mainfrom
runsascoded:ci-lint-job
Open

CI: split lint into separate job (run once instead of 18× per-matrix-cell)#660
ryan-williams wants to merge 1 commit intotreeverse:mainfrom
runsascoded:ci-lint-job

Conversation

@ryan-williams
Copy link
Copy Markdown
Contributor

What

Extract nox -s lint from the test matrix into its own dedicated job.

Why

The current workflow runs nox -s lint inside every test matrix cell: 3 OS × 6 Python versions = 18 redundant lint runs per CI trigger. Lint is platform- and Python-version-independent, so it only needs to run once.

Change

  • New lint job: ubuntu-latest, Python 3.12, runs once
  • tests job now needs: [lint] — no point running 18 expensive test cells if lint is broken
  • check job updated to needs: [lint, tests]
  • fail-fast: false preserved on the test matrix — platform-specific failures (e.g. Windows-only) remain fully visible

No test logic changes; just moving nox -s lint + its pre-commit cache out of the matrix.

The previous workflow ran `nox -s lint` inside every test matrix cell
(3 OS × 6 Python versions = 18 runs of the same lint). This change:

- Extracts lint into its own fast job (ubuntu-latest, Python 3.12)
- Makes `tests` depend on lint (no point running 18 expensive test cells
  if lint is broken)
- Preserves `fail-fast: false` on the test matrix so platform-specific
  failures remain visible
@github-project-automation github-project-automation Bot moved this to Backlog in DVC Apr 17, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.82%. Comparing base (e38c8c2) to head (69fbf02).
⚠️ Report is 72 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #660      +/-   ##
==========================================
+ Coverage   72.42%   73.82%   +1.40%     
==========================================
  Files          67       65       -2     
  Lines        5132     5357     +225     
  Branches      605      622      +17     
==========================================
+ Hits         3717     3955     +238     
+ Misses       1227     1209      -18     
- Partials      188      193       +5     

☔ View full report in Codecov by Sentry.
📢 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.

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.

1 participant