Skip to content

Commit

Permalink
ci: use installed pip, upgrade to pinned if necessary (#167)
Browse files Browse the repository at this point in the history
* ci: use installed pip, upgrade to pinned if necessary

Ref: pytest-dev#6522

* PIP_DISABLE_PIP_VERSION_CHECK=1
  • Loading branch information
blueyed authored Feb 9, 2020
1 parent 3cbb08e commit abc41e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .builds/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ environment:
PYTEST_ADDOPTS: -vv --showlocals --durations=100
# XXX: makes testing/test_pdb.py hang (with pexpect).
PYTEST_REORDER_TESTS: 0
PIP_DISABLE_PIP_VERSION_CHECK: 1

tasks:
- install: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ jobs:
key: pre-commit|${{ env.PY_CACHE_KEY }}|${{ hashFiles('.pre-commit-config.yaml') }}

- name: Install tox
run: python -m pip install git+https://github.com/blueyed/tox@master
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
run: |
python -m pip --version
python -m pip install git+https://github.com/blueyed/tox@master
- name: Setup tox environment
run: python -m tox --notest -v --durations -e ${{ matrix.tox_env }}
Expand Down Expand Up @@ -145,6 +149,7 @@ jobs:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip --version
python -m pip install wheel setuptools git+https://github.com/blueyed/tox@master
- name: Build package
run: |
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ cache: false
env:
global:
- PYTEST_ADDOPTS="-vv --showlocals --durations=50"
- PIP_DISABLE_PIP_VERSION_CHECK=1

# setuptools-scm needs all tags in order to obtain a proper version
git:
Expand All @@ -23,7 +24,7 @@ jobs:
python: '3.5.1'
dist: trusty
before_install:
- python -m pip install -U pip
- python -m pip install -U pip==19.3.1

before_script:
- |
Expand Down

0 comments on commit abc41e3

Please sign in to comment.