Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev committed Jan 8, 2025
1 parent d10462f commit 7c6bd55
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/skore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: cache-python-venv
with:
path: 'skore/venv'
key: python-venv-${{ matrix.os }}-${{ matrix.python }}-${{ matrix.scikit-learn }}-${{ hashFiles('skore/pyproject.toml') }}

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"

- uses: actions/cache/restore@v4
id: cache-python-venv
with:
path: 'skore/venv'
key: python-venv-${{ matrix.os }}-${{ matrix.python }}-${{ matrix.scikit-learn }}-${{ hashFiles('skore/pyproject.toml') }}


- name: Setup python-venv
working-directory: "skore/"
run: |
Expand All @@ -50,6 +53,7 @@ jobs:
echo "${PWD}/venv/Scripts" >> ${GITHUB_PATH}
echo "VIRTUAL_ENV=${PWD}/venv" >> ${GITHUB_ENV}
fi
- name: Install dependencies
working-directory: "skore/"
if: steps.cache-python-venv.outputs.cache-hit != 'true'
Expand All @@ -58,13 +62,17 @@ jobs:
python -m pip install --upgrade "build"
python -m pip install --upgrade "scikit-learn ==${{ matrix.scikit-learn }}"
python -m pip install --upgrade ".[test]"
- uses: actions/cache/save@v4
if: steps.cache-python-venv.outputs.cache-hit != 'true'
with:
path: 'skore/venv'
key: ${{ steps.cache-python-venv.outputs.cache-primary-key }}

- name:
timeout-minutes: 10
working-directory: "skore/"
run: |
which python
python -m pip list
# Lint
pre-commit run --all-files ruff
Expand Down

0 comments on commit 7c6bd55

Please sign in to comment.