diff --git a/.github/workflows/action.yaml b/.github/workflows/action.yaml index 45f10a0..8bc2a8e 100644 --- a/.github/workflows/action.yaml +++ b/.github/workflows/action.yaml @@ -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