Skip to content

Dgv/quad constr

Dgv/quad constr #311

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.12"]
polars-version: ["1.17.1"]
include:
- python-version: "3.9"
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@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- uses: ./.github/actions/setup_optimizers_linux
with:
GUROBI_WLS: ${{ secrets.GUROBI_WLS }}
CHECK_LICENSE: true
- 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 }}