Add support for sklearn 1.3.0 #300
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
linux-unittests: | |
name: "Unit tests - Python ${{ matrix.PYTHON_VERSION }} Sklearn ${{ matrix.SKLEARN_VERSION }}" | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
job: | |
- { PYTHON_VERSION: '3.8', SKLEARN_VERSION: '1.1' } | |
- { PYTHON_VERSION: '3.9', SKLEARN_VERSION: '1.1' } | |
- { PYTHON_VERSION: '3.10', SKLEARN_VERSION: '1.1' } | |
- { PYTHON_VERSION: '3.11', SKLEARN_VERSION: '1.1' } | |
- { PYTHON_VERSION: '3.11', SKLEARN_VERSION: '1.2' } | |
- { PYTHON_VERSION: '3.11', SKLEARN_VERSION: '1.3' } | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up conda env | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
cache-environment: true | |
environment-file: environment-deprecated.yml | |
create-args: >- | |
python=${{ matrix.PYTHON_VERSION }} | |
scikit-learn=${{ matrix.SKLEARN_VERSION }} | |
pytest-md | |
pytest-emoji | |
- name: Install repository | |
run: python -m pip install --no-build-isolation --no-deps --disable-pip-version-check -e . | |
- name: Run unittests | |
uses: pavelzw/pytest-action@v2 | |
with: | |
report-title: "Unit tests Linux - Python ${{ matrix.PYTHON_VERSION }} - Sklearn ${{ matrix.SKLEARN_VERSION }}" | |
linux-unittests-pixi: | |
name: "Unit tests Pixi - Python ${{ matrix.PYTHON_VERSION }}" | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
PYTHON_VERSION: ['3.11'] | |
steps: | |
- uses: actions/checkout@v3 | |
# TODO: move to action once it is available | |
- name: Set up pixi | |
run: | | |
curl -fsSL https://raw.githubusercontent.com/prefix-dev/pixi/main/install/install.sh | bash | |
- name: Install dependencies | |
run: | | |
pixi install | |
pixi run pip install --no-build-isolation --no-deps --disable-pip-version-check -e . | |
- name: Run unittests | |
uses: pavelzw/pytest-action@v2 | |
with: | |
custom-pytest: pixi run pytest | |
report-title: "Unit tests Linux Pixi - Python ${{ matrix.PYTHON_VERSION }}" | |
pre-commit: # todo switch to pre-commit.ci | |
name: "Pre-commit checks" | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
- name: Install Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Run pre-commit checks | |
uses: pre-commit/action@v3.0.0 | |
lint-workflow-files: | |
name: "Lint workflow files" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v3 | |
# https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions | |
- name: Download actionlint | |
id: get_actionlint | |
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | |
- name: Check workflow files | |
run: ${{ steps.get_actionlint.outputs.executable }} -color |