-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.09 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 }}