Skip to content

Commit

Permalink
Avoid using environment in CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Oct 30, 2024
1 parent 0da3654 commit 4081674
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,8 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Create venv and install dependencies
run: |
python -m venv .venv
.venv/Scripts/activate || source .venv/bin/activate
pip install -e .[dev]
- name: Activate venv for later steps
run: |
echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
echo "$(pwd)/.venv/bin" >> $GITHUB_PATH # For Unix-like systems
echo "$(pwd)/.venv/Scripts" >> $GITHUB_PATH # For Windows
- name: Install dependencies
run: pip install -e .[dev]

- name: ruff
run: ruff check .
Expand Down

0 comments on commit 4081674

Please sign in to comment.