Skip to content

Commit

Permalink
Set pip environment variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanholek committed Nov 12, 2022
1 parent 909c68f commit 36dacd0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/python-package.yml
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [main]

env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
PIP_NO_PYTHON_VERSION_WARNING: 1

jobs:
build:
strategy:
Expand Down Expand Up @@ -36,7 +40,7 @@ jobs:
- name: Get pip cache info
id: pip-cache
run: |
echo "dir=$(python -m pip --disable-pip-version-check cache dir)" >> $GITHUB_OUTPUT
echo "dir=$(python -m pip cache dir)" >> $GITHUB_OUTPUT
echo "py=$(python -c'import sys; print("%d.%d" % sys.version_info[:2])')" >> $GITHUB_OUTPUT
- name: Cache pip
Expand All @@ -47,10 +51,10 @@ jobs:
restore-keys: ${{ runner.os }}-pip-py${{ steps.pip-cache.outputs.py }}-

- name: Install dependencies
run: python -m pip --disable-pip-version-check install -e .
run: python -m pip install -e .

- name: List installed packages
run: python -m pip --disable-pip-version-check list
run: python -m pip list

- name: Run tests
run: python -m unittest discover
Expand Down

0 comments on commit 36dacd0

Please sign in to comment.