Back to all reviewers

CI workflow configuration best

pola-rs/polars
Based on 3 comments
Yaml

Configure GitHub Actions workflows to maximize reliability and maintainability. Follow these key practices: 1. **Always test with latest patches**: Use `check-latest: true` when setting up language environments to ensure you're testing with the most recent patch versions rather than potentially outdated cached versions.

CI/CD Yaml

Reviewer Prompt

Configure GitHub Actions workflows to maximize reliability and maintainability. Follow these key practices:

  1. Always test with latest patches: Use check-latest: true when setting up language environments to ensure you’re testing with the most recent patch versions rather than potentially outdated cached versions.
- uses: actions/setup-python@v5
  with:
    python-version: '3.12'
    check-latest: true
  1. Define complete job dependencies: Ensure publication jobs depend on all build and test jobs to prevent publishing artifacts if any part of the build process fails.
publish-to-pypi:
  needs: [create-sdist, build-wheels, build-wheel-pyodide]
  1. Use readable matrix configurations: Consider using include rather than exclude when it results in clearer, more maintainable matrix definitions for cross-platform testing.
matrix:
  package: [polars, polars-lts-cpu, polars-u64-idx]
  os: [ubuntu-latest, macos-13]
  architecture: [x86-64, aarch64]
  include:
    - os: windows-latest
      architecture: x86-64
    - os: windows-arm64-16gb
      architecture: aarch64

These practices help create reliable CI pipelines that catch issues early and prevent problematic releases.

3
Comments Analyzed
Yaml
Primary Language
CI/CD
Category

Source Discussions