Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,8 @@ updates:
default-days: 14
commit-message:
prefix: "chore(dependencies): GITHUB-ACTIONS"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 14
semver-patch-days: 7
commit-message:
prefix: "chore(dependencies): PIP"
groups:
test-dependencies:
patterns:
- "*"

# It uses `ci/requirements/**/.python-version` to specify the python version used to
# update `ci/requirements/**/test-requirements.txt`
# Python deps are now resolved by pixi (see `pixi.toml` / `pixi.lock`).
# Dependabot has no native pixi ecosystem; the lockfile is refreshed by the
# `.github/workflows/update-pixi-lock.yml` scheduled workflow (or manually with
# `pixi lock`).
56 changes: 11 additions & 45 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: lint

env:
PYTHON: '3.14'
LOCKFILE: 'ci/requirements/skore/python-3.14/scikit-learn-1.9/test-requirements.txt'

on:
pull_request:
push:
Expand All @@ -23,54 +19,24 @@ defaults:
run:
shell: "bash"

env:
PIXI_VERSION: v0.69.0
PIXI_ENV: lint

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
id: setup-python
with:
python-version: ${{ env.PYTHON }}
check-latest: True
cache: pip

- name: Restore python-venv
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
id: cache-python-venv
with:
path: skore/venv
key: >-
python-venv
-ubuntu-latest
-${{ steps.setup-python.outputs.python-version }}
-${{ hashFiles(env.LOCKFILE) }}

- name: Setup python-venv
working-directory: skore
run: |
set -eu

# Ensure venv is created
python -m venv venv

# Activate venv for each step
echo "${GITHUB_WORKSPACE}/skore/venv/bin" >> ${GITHUB_PATH}
echo "VIRTUAL_ENV=${GITHUB_WORKSPACE}/skore/venv" >> ${GITHUB_ENV}

- name: Install dependencies in python-venv
if: steps.cache-python-venv.outputs.cache-hit != 'true'
run: python -m pip install --requirement "${LOCKFILE}"

- name: Save python-venv
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
if: steps.cache-python-venv.outputs.cache-hit != 'true'
- name: Setup pixi
uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
with:
path: skore/venv
key: ${{ steps.cache-python-venv.outputs.cache-primary-key }}
pixi-version: ${{ env.PIXI_VERSION }}
environments: ${{ env.PIXI_ENV }}
cache: true
locked: true

- name: Lint
run: pre-commit run --all-files
run: pixi run -e ${{ env.PIXI_ENV }} lint
55 changes: 0 additions & 55 deletions .github/workflows/pr-display-code-coverage.yml

This file was deleted.

Loading
Loading