Skip to content

Commit

Permalink
venv for action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
avocadodip committed Sep 8, 2024
1 parent 14a3bcb commit 209c016
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,20 @@ jobs:
with:
python-version: '3.12'

- name: Install uv
run: pip install uv

- name: Create and activate virtual environment
run: |
uv venv .venv
echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv flake8 pytest isort
uv pip install flake8 isort
uv pip install -r requirements.txt
- name: Run isort
run: isort . --check-only --diff

Expand Down

0 comments on commit 209c016

Please sign in to comment.