Skip to content

Commit

Permalink
[CHORE] Install Python before using uv (#2840)
Browse files Browse the repository at this point in the history
  • Loading branch information
samster25 authored Sep 12, 2024
1 parent c2d7d08 commit 8aad04c
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/nightlies-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
env:
DAFT_ANALYTICS_ENABLED: '0'
UV_SYSTEM_PYTHON: 1
PYTHON_VERSION: '3.8'

jobs:
integration-test-tpch:
Expand All @@ -29,13 +30,20 @@ jobs:
with:
submodules: true
fetch-depth: 0

- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Setup Virtual Env
run: |
python3 -m venv venv
uv venv venv
echo "$GITHUB_WORKSPACE/venv/bin" >> $GITHUB_PATH
- name: Install Daft and dev dependencies
run: |
pip install uv
uv pip install -r requirements-dev.txt getdaft --pre --extra-index-url https://pypi.anaconda.org/daft-nightly/simple --force-reinstall
rm -rf daft
- uses: actions/cache@v4
Expand Down Expand Up @@ -93,13 +101,19 @@ jobs:
- uses: docker-practice/actions-setup-docker@master
timeout-minutes: 15
if: runner.os == 'macos'

- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Setup Virtual Env
run: |
python3 -m venv venv
uv venv venv
echo "$GITHUB_WORKSPACE/venv/bin" >> $GITHUB_PATH
- name: Install Daft and dev dependencies
run: |
pip install uv
uv pip install -r requirements-dev.txt getdaft --pre --extra-index-url https://pypi.anaconda.org/daft-nightly/simple --force-reinstall
rm -rf daft
- name: Prepare tmpdirs for IO services
Expand Down

0 comments on commit 8aad04c

Please sign in to comment.