Skip to content

Improved GitHub Actions CI configuration #204

Improved GitHub Actions CI configuration

Improved GitHub Actions CI configuration #204

Workflow file for this run

name: python
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: [3.9, '3.10', 3.11, 3.12]
sklearn: [1.0.2, 1.1.3, 1.2.2, 1.3.2, 1.4.2, 1.5.2]
exclude:
- python: 3.11
sklearn: 1.0.2
- python: 3.12
sklearn: 1.0.2
- python: 3.12
sklearn: 1.1.3
- python: 3.12
sklearn: 1.2.2
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- run: |
python -m pip install --upgrade pip
pip install pytest
pip install --only-binary :all: scikit-learn==${{ matrix.sklearn }}
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- run: |
python -m pytest