Skip to content

Commit

Permalink
[ci] with venvs?
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicGrobol committed Sep 18, 2024
1 parent 4dfb8e6 commit 8eb4d56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ jobs:
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Create base venv
run: uv venv --python ${{ matrix.python-version }}
- name: Get transformers and cache
id: transfo-install
run: |
uv venv --python ${{ matrix.python-version }}
source .venv/bin/activate
uv pip install --upgrade transformers
python -c "from transformers.file_utils import TRANSFORMERS_CACHE; print(f'dir={TRANSFORMERS_CACHE}')" >> $GITHUB_OUTPUT
echo "version=$(pip show transformers | grep Version)" >> $GITHUB_OUTPUT
Expand All @@ -59,6 +61,7 @@ jobs:
${{ runner.os }}-transformers-
- name: Run tox
run: |
source .venv/bin/activate
uv pip install tox tox-gh-actions tox-uv
tox
build_wheels:
Expand Down

0 comments on commit 8eb4d56

Please sign in to comment.