Skip to content

Setup project to support multiple versions of polars #209

Setup project to support multiple versions of polars

Setup project to support multiple versions of polars #209

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]
schedule:
- cron: "0 5 * * WED"
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
polars-version: ["1.12.0"]
include:
- python-version: "3.8"
polars-version: "0.20.27"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --editable .[dev]
pip install polars==${{ matrix.polars-version }}
- name: Run tests and collect coverage
run: pytest --cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
with:
name: coverage-polars-${{ matrix.polars-version }}
flags: smart-tests
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}