Skip to content

Commit

Permalink
fix(ci): avoid installing dependencies outside of venv for pyright (#978
Browse files Browse the repository at this point in the history
)

Co-authored-by: arl <[email protected]>
  • Loading branch information
shiftinv and onerandomusername authored Mar 10, 2023
1 parent 48124e2 commit b13f9a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies out of venv
run: |
pdm export --pyproject --without-hashes -d -G speed -G docs -G voice -o requirements.txt
pip install -r requirements.txt
pip install .
- name: Install dependencies
run: pdm install -d -Gspeed -Gdocs -Gvoice

- name: Add .venv/bin to PATH
run: dirname "$(pdm info --python)" >> $GITHUB_PATH

- name: Set pyright version
run: |
PYRIGHT_VERSION="$(python -c 'import pyright; print(pyright.__pyright_version__)')"
PYRIGHT_VERSION="$(pdm run python -c 'import pyright; print(pyright.__pyright_version__)')"
echo "PYRIGHT_VERSION=$PYRIGHT_VERSION" >> $GITHUB_ENV
- name: Run pyright (Linux)
Expand Down

0 comments on commit b13f9a9

Please sign in to comment.