Skip to content

Commit

Permalink
Use a Python virtualenv in CI
Browse files Browse the repository at this point in the history
Fix `externally-managed-environment` error from pip in Linux CI by creating a
virtualenv and installing packages there, as advised by the error messages.
  • Loading branch information
robertknight committed Oct 1, 2024
1 parent ec7de62 commit 4631701
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ jobs:
make docs
- name: Setup Python
run: |
pip install --upgrade pip
if: ${{ matrix.os == 'ubuntu-latest' }}
python -m venv .venv
.venv/bin/pip install --upgrade pip
- name: Python Lint
run: |
source .venv/bin/activate
cd rten-convert
pip install -e .
pip install -r requirements.dev.txt
make check
if: ${{ matrix.os == 'ubuntu-latest' }}

0 comments on commit 4631701

Please sign in to comment.