Skip to content

Commit

Permalink
fix: Improve WSL workflow to use WSL Python consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Nov 11, 2024
1 parent edc59a0 commit a2ff90c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/wsl-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,17 @@ jobs:
uses: Vampire/setup-wsl@v2
with:
distribution: Ubuntu-22.04

additional-packages: python3-pip python3-venv

- name: Install poetry via pipx
- name: Set up Python and Poetry in WSL
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
python3 -m pip install pipx
sudo apt-get install -y python${{ matrix.python-version }} python${{ matrix.python-version }}-venv
python3 -m pip install --user pipx
python3 -m pipx ensurepath
source ~/.bashrc
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'

- name: Install Python dependencies using Poetry
run: poetry install --without evaluation,llama-index

Expand Down

0 comments on commit a2ff90c

Please sign in to comment.