Skip to content

Commit

Permalink
Add venv setup on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Oct 20, 2024
1 parent a3aa110 commit edef413
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:

- name: Set up Python
run: uv python install ${{ env.PYTHON_VERSION }}

- name: Setup and Activate virtualenv
run: |
uv venv venv --python ${{ env.PYTHON_VERSION }}
source venv/bin/activate
echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
- name: Install system dependencies
run: sudo apt-get install postgresql-client libpq-dev redis-server
Expand Down Expand Up @@ -89,6 +96,13 @@ jobs:

- name: Set up Python
run: uv python install ${{ env.PYTHON_VERSION }}

- name: Setup and Activate virtualenv
run: |
uv venv venv --python ${{ env.PYTHON_VERSION }}
source venv/bin/activate
echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
- name: Install system dependencies
run: sudo apt-get install postgresql-client libpq-dev redis-server
Expand Down

0 comments on commit edef413

Please sign in to comment.