Skip to content

Commit

Permalink
🚀 Speed up import test with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
daquintero committed Aug 21, 2024
1 parent 58d4440 commit c57fa24
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/test_import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Set up uv
# Install a specific uv version using the installer
run: curl -LsSf https://astral.sh/uv/0.3.0/install.sh | sh

- name: Install dependencies - basic
run: |
git config --global core.longpaths true
python -m pip install --upgrade pip
pip install .
uv --version
uv venv --python=python${{ matrix.python-version }} venv_basic
source venv_basic/bin/activate
uv pip install -e .
- name: Test package import - basic
run: |
Expand All @@ -33,8 +39,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
uv --version
uv venv --python=python${{ matrix.python-version }} venv_dev
source venv_dev/bin/activate
uv pip install -e .[dev]
- name: Test package import
run: |
Expand Down

0 comments on commit c57fa24

Please sign in to comment.