Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.6.x #1

Open
wants to merge 131 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
f7bf914
Fix `pytest.mark.parametrize` when the argvalue is an iterator
asottile Jun 1, 2019
dba62f8
[4.6] Fix `pytest.mark.parametrize` when the argvalue is an iterator …
nicoddemus Jun 1, 2019
f078984
Fix all() unroll for non-generators/non-list comprehensions (#5360)
nicoddemus Jun 2, 2019
8208a37
Merge pull request #5361 from asottile/backport_5360
asottile Jun 2, 2019
abb853f
Preparing release version 4.6.1
asottile Jun 2, 2019
114dba5
Merge pull request #5362 from asottile/release-4.6.1
asottile Jun 2, 2019
12bf458
Merge pull request #5373 from asottile/revert_all_handling
asottile Jun 3, 2019
2a8b463
Merge pull request #5376 from asottile/backport_5373
asottile Jun 3, 2019
70f0b77
Preparing release version 4.6.2
asottile Jun 3, 2019
54dbfb5
Merge pull request #5379 from asottile/release-4.6.2
asottile Jun 3, 2019
829a598
Remove --recreate from .travis.yml (#5384)
nicoddemus Jun 4, 2019
937f945
Merge pull request #5386 from asottile/backport_5384
asottile Jun 4, 2019
92432ac
Merge pull request #5393 from nicoddemus/unittest-self-5390
asottile Jun 5, 2019
0ae2771
Backport of #5389: fix for 'files' = None in broken metadata
dirk-thomas Jun 4, 2019
8076f48
[4.6] Merge pull request #5393 from nicoddemus/unittest-self-5390 (#5…
nicoddemus Jun 5, 2019
21680ff
Merge pull request #5401 from nicoddemus/backport-5389
asottile Jun 5, 2019
1b7597a
[4.6] tests: restore tracing function
blueyed Jun 5, 2019
1cae76b
[4.6] tests: restore tracing function (#5408)
nicoddemus Jun 5, 2019
a93c50c
Fix verbosity bug in --collect-only (#5391)
nicoddemus Jun 5, 2019
355954d
Merge pull request #5411 from nicoddemus/backport-5391
asottile Jun 6, 2019
45d36dd
Merge pull request #5421 from nicoddemus/raises-warning-message
asottile Jun 8, 2019
f37ea71
Merge pull request #5425 from asottile/backport-5421
asottile Jun 8, 2019
b8e65d0
Preparing release version 4.6.3
asottile Jun 11, 2019
d2c1a04
Merge pull request #5435 from asottile/release-4.6.3
asottile Jun 11, 2019
0fc11b6
add test for stepwise attribute error Refs: #5444
graingert Jun 13, 2019
e2fa2b6
Fix --sw crash when first file in cmdline fails to collect
nicoddemus Jun 13, 2019
43a499e
Remove handling of collection errors by --sw
nicoddemus Jun 13, 2019
4e02248
Fix test docstring
nicoddemus Jun 14, 2019
443af11
Merge pull request #5404 from Zac-HD/helpful-mock-unwrapper
blueyed Jun 15, 2019
c765b83
Merge pull request #5453 from Zac-HD/backport-unwrapper
Zac-HD Jun 17, 2019
4b104ba
Merge pull request #5454 from nicoddemus/backport-5446
nicoddemus Jun 17, 2019
d5eed3b
Pickup addition positional args passed to _parse_parametrize_ar… (#5483)
nicoddemus Jun 25, 2019
430de12
Merge pull request #5486 from nicoddemus/backport-5483
nicoddemus Jun 25, 2019
d2f74d3
fix safe_str docstring
graingert Jun 25, 2019
554bff8
Merge pull request #5489 from graingert/fix-safe-str-doc
nicoddemus Jun 25, 2019
013d0e6
use safe_str to serialize Exceptions Fixes #5478
graingert Jun 25, 2019
86a4eb6
Update changelog/5478.bugfix.rst
graingert Jun 27, 2019
f4b1c11
Merge pull request #5506 from asottile/fix_no_terminal
asottile Jun 27, 2019
b85d98e
Merge pull request #5508 from asottile/backport_5506
asottile Jun 27, 2019
d3549df
Preparing release version 4.6.4
asottile Jun 29, 2019
2301fa6
Merge pull request #5520 from asottile/release-4.6.4
asottile Jun 29, 2019
09dee29
Use unicode message if regex is also unicode in ExceptionInfo.match
nicoddemus Jun 30, 2019
a886015
Test various bytes <=> unicode cases as requested in review
nicoddemus Jul 1, 2019
34b4e21
Include two more cases for non-ascii encoded bytes
nicoddemus Jul 4, 2019
46a0888
Fix pytest.raises handling of unicode exceptions in Python 2 (#5479)
nicoddemus Jul 4, 2019
df0cff1
Handle xfail(strict=True) properly in --step-wise mode (#5555)
nicoddemus Jul 4, 2019
acb62ba
Fix test_stepwise::test_xfail_handling when byte code writing is disa…
nicoddemus Jul 5, 2019
802c77a
[4.6] Handle xfail(strict=True) properly in --step-wise mode (#… (#5556)
nicoddemus Jul 5, 2019
a92ac0d
Fix comment in stepwise (follow up to #5555) [skip ci] (#5560)
nicoddemus Jul 5, 2019
01655b1
Merge pull request #5561 from nicoddemus/backport-5560
nicoddemus Jul 5, 2019
02c737f
Fix rmtree to remove directories with read-only files (#5588)
nicoddemus Jul 11, 2019
30de669
[4.6] Fix rmtree to remove directories with read-only files (#5… (#5597)
nicoddemus Jul 11, 2019
f06ae52
Merge pull request #5636 from asottile/fixup_sysmodules_test
asottile Jul 20, 2019
459c5f4
Merge pull request #5637 from asottile/backport-5636
asottile Jul 20, 2019
400393c
Improve output when parsing an ini configuration fails (#5650)
nicoddemus Jul 23, 2019
2e345fd
Disable shallow cloning because of setuptools-scm
nicoddemus Aug 1, 2019
829941a
[4.6] Improve output when parsing an ini configuration fails (#… (#5652)
nicoddemus Aug 1, 2019
0274c08
Handle only known functions in rm_rf (#5627)
nicoddemus Aug 2, 2019
a19ae2a
Merge pull request #5691 from nicoddemus/backport-5627
asottile Aug 5, 2019
b71f873
[4.6] Fix RuntimeError when trying to collect package with "__init__.…
blueyed Aug 5, 2019
7807c26
Preparing release version 4.6.5
nicoddemus Aug 5, 2019
0b039b1
Preparing release version 4.6.5 (#5696)
nicoddemus Aug 5, 2019
4910036
Publish GitHub release notes after deployment (#5723)
nicoddemus Aug 12, 2019
2fbea0e
Merge pull request #5740 from nicoddemus/use-repo-env-var
nicoddemus Aug 15, 2019
7a96f3f
Merge pull request #5750 from nicoddemus/fix-gh-publish-notes
nicoddemus Aug 16, 2019
7718d8c
Fix linting
nicoddemus Aug 19, 2019
9191857
Do not update pip on Azure
nicoddemus Aug 20, 2019
117f52d
Merge pull request #5767 from nicoddemus/backport-5723-5740-5750
nicoddemus Aug 20, 2019
aa79b1c
[4.6] fixes for python4
asottile Aug 29, 2019
8aba863
Merge pull request #5801 from asottile/flake8_2020
asottile Aug 29, 2019
9144415
Fix "lexer" being used when uploading to bpaste.net
goerz Aug 30, 2019
f2d87dc
Merge pull request #5809 from goerz/pastebin
nicoddemus Sep 1, 2019
c03e46f
Fix warnings with attrs 19.2 and fix object assertions (#5902)
nicoddemus Oct 6, 2019
1cc974c
[4.6] Fix warnings with attrs 19.2 and fix object assertions (#… (#5944)
nicoddemus Oct 11, 2019
b9a8465
Replace importlib_metadata with importlib.metadata on Python 3.8+ (#5…
nicoddemus Jul 5, 2019
2c7614a
[4.6] Replace importlib_metadata with importlib.metadata on Pyt… (#5945)
nicoddemus Oct 11, 2019
d526053
Add changelog entry for #5902
nicoddemus Oct 6, 2019
62c0d82
Use 'python3' instead of 'python3.6' on tox
nicoddemus Sep 28, 2019
5b499ba
Preparing release version 4.6.6
nicoddemus Oct 11, 2019
866daf5
Release 4.6.6 (#5947)
nicoddemus Oct 13, 2019
3edcc71
ci: add codecov.yml to turn comments off
blueyed Aug 15, 2019
e89efa8
Merge pull request #5957 from blueyed/4.6-comment-off
blueyed Oct 15, 2019
0084fd9
Review rm_rf handling of FileNotFoundErrors (#6044)
nicoddemus Oct 23, 2019
3edf417
[4.6] Review rm_rf handling of FileNotFoundErrors (#6050)
nicoddemus Oct 23, 2019
a8c16d9
pre-commit: upgrade black
blueyed Nov 16, 2019
3d8649b
Remove (now) unnecessary fmt: off
blueyed Nov 16, 2019
097acaf
re-run black
blueyed Nov 16, 2019
6465244
[4.6] Upgrade black (#6209)
blueyed Nov 16, 2019
192f699
Include <testsuites> root tag in generated XML (#5550)
nicoddemus Jul 12, 2019
e1f3c0f
[4.6] Include <testsuites> root tag in generated XML (#5550) (#6295)
nicoddemus Nov 30, 2019
6f43eee
Preparing release version 4.6.7
nicoddemus Dec 5, 2019
943f4ac
Release version 4.6.7 (#6318)
nicoddemus Dec 6, 2019
8b9482e
Add hostname and timestamp to JUnit XML testsuite tag (#5692)
nicoddemus Aug 5, 2019
bd54116
[4.6] Add hostname and timestamp to JUnit XML testsuite tag (#5… (#6332)
nicoddemus Dec 10, 2019
f9ebe3c
Bugfix 5430 pass logs to junit report (#6274)
nicoddemus Dec 12, 2019
8bfe434
Drop validation against multiple xmlfamilies
nicoddemus Dec 12, 2019
1d02154
Drop 3.4 testing on Azure
nicoddemus Dec 12, 2019
51fd451
[4.6] Bugfix 5430 pass logs to junit report (#6338)
nicoddemus Dec 12, 2019
b08c599
Ensure colorama versions is no newer than 0.4.1
nightlark Dec 13, 2019
fb8395d
Create CHANGELOG for #6340
nicoddemus Dec 13, 2019
1deb60f
Ensure colorama version is no newer than 0.4.1 (#6340)
nicoddemus Dec 13, 2019
53b0873
Pin the colorama version only for Python 3.4
nightlark Dec 13, 2019
9ab4032
Merge pull request #6345 from nightlark/patch-1
asottile Dec 19, 2019
2d398d8
Preparing release version 4.6.8
asottile Dec 19, 2019
197c996
Merge pull request #6360 from asottile/release-4.6.8
asottile Dec 19, 2019
e49282f
Fix assertion rewriting module detection for egg dists
nicoddemus Dec 3, 2019
d622f12
Fix compatibility for Python 2
felixonmars Dec 25, 2019
621028c
[4.6] Fix assertion rewriting module detection for egg dists (#6368)
nicoddemus Dec 26, 2019
035f51a
Update copyright year to 2020
hugovk Jan 2, 2020
897f1a3
Update copyright year
hugovk Jan 4, 2020
3f94cc9
Merge pull request #6392 from hugovk/4.6-maintenance-2020
nicoddemus Jan 4, 2020
f6a5578
Preparing release version 4.6.9
asottile Jan 4, 2020
b39b867
Merge pull request #6391 from asottile/release-4.6.9
asottile Jan 4, 2020
24898e0
Remove usage of parser module, deprecated in Python 3.9
nicoddemus Jan 5, 2020
f606fef
[4.6] Remove usage of parser module, deprecated in Python 3.9 (#6408)
nicoddemus Jan 6, 2020
c5831ac
Fix CI config and coverage report
fermezz Mar 9, 2020
020831d
Merge pull request #6884 from fermezz/use-github-actions
nicoddemus Mar 26, 2020
a6029ff
BACKPORT: Introduction of Config.invocation_args
fermezz Mar 6, 2020
2a5ca51
[4.6] Merge pull request #7179 from asottile/py39
nicoddemus May 7, 2020
3d47055
Merge pull request #7190 from hroncok/backport-7179
nicoddemus May 8, 2020
ded772b
Merge pull request #6870 from fermezz/backport-invocation-args
nicoddemus May 8, 2020
f1d7aa6
Preparing release version 4.6.10
nicoddemus May 8, 2020
180f931
Introduce missing remark as commented in original PR
nicoddemus May 8, 2020
d5843f8
Merge pull request #7199 from nicoddemus/release-4.6.10
nicoddemus May 8, 2020
049f5b5
Make 'S' and 'F' aliases to 's' and 'f' respectively (#6337)
nicoddemus Dec 13, 2019
1c465bd
Add a change note on issue #7310
webknjaz Jun 3, 2020
5644437
Merge pull request #7314 from webknjaz/backports/pr-6337
asottile Jun 4, 2020
2262734
Preparing release version 4.6.11
nicoddemus Jun 4, 2020
be26da8
Merge pull request #7319 from nicoddemus/release-4.6.11
nicoddemus Jun 5, 2020
90aaeeb
testing: python 3.10 fix
bluetech Oct 24, 2020
da7ca9e
Merge pull request #8054 from hroncok/4.6-py3.10
nicoddemus Nov 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 191 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
name: main

on:
push:
branches:
- 4.6.x
tags:
- "*"

pull_request:
branches:
- 4.6.x

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
name: [
"windows-py27",
"windows-py35",
"windows-py36",
"windows-py37",
"windows-py37-pluggy",
"windows-py38",

"ubuntu-py27-pluggy",
"ubuntu-py27-nobyte",
"ubuntu-py37",
"ubuntu-py37-pluggy",
"ubuntu-py37-pexpect-py37-twisted",
"ubuntu-py37-freeze",
"ubuntu-pypy",
"ubuntu-pypy3",

"macos-py27",
"macos-py38",

]

include:
# Windows jobs
- name: "windows-py27"
python: "2.7"
os: windows-latest
tox_env: "py27-xdist"
use_coverage: true
- name: "windows-py35"
python: "3.5"
os: windows-latest
tox_env: "py35-xdist"
use_coverage: true
- name: "windows-py36"
python: "3.6"
os: windows-latest
tox_env: "py36-xdist"
use_coverage: true
- name: "windows-py37"
python: "3.7"
os: windows-latest
tox_env: "py37-twisted-numpy"
use_coverage: true
- name: "windows-py37-pluggy"
python: "3.7"
os: windows-latest
tox_env: "py37-pluggymaster-xdist"
use_coverage: true
- name: "windows-py38"
python: "3.8"
os: windows-latest
tox_env: "py38-xdist"
use_coverage: true

# Ubuntu jobs – find the rest of them in .travis.yml
- name: "ubuntu-py27-pluggy"
python: "2.7"
os: ubuntu-latest
tox_env: "py27-pluggymaster-xdist"
use_coverage: true
- name: "ubuntu-py27-nobyte"
python: "2.7"
os: ubuntu-latest
tox_env: "py27-nobyte-numpy-xdist"
use_coverage: true
- name: "ubuntu-py37"
python: "3.7"
os: ubuntu-latest
tox_env: "py37-lsof-numpy-xdist"
use_coverage: true
- name: "ubuntu-py37-pluggy"
python: "3.7"
os: ubuntu-latest
tox_env: "py37-pluggymaster-xdist"
use_coverage: true
- name: "ubuntu-py37-pexpect-py37-twisted"
python: "3.7"
os: ubuntu-latest
tox_env: "py37-pexpect,py37-twisted"
use_coverage: true
- name: "ubuntu-py37-freeze"
python: "3.7"
os: ubuntu-latest
tox_env: "py37-freeze"
- name: "ubuntu-pypy"
python: "pypy2"
os: ubuntu-latest
tox_env: "pypy-xdist"
use_coverage: true
- name: "ubuntu-pypy3"
python: "pypy3"
os: ubuntu-latest
tox_env: "pypy3-xdist"
use_coverage: true

# MacOS jobs
- name: "macos-py27"
python: "2.7"
os: macos-latest
tox_env: "py27-xdist"
use_coverage: true
- name: "macos-py38"
python: "3.8"
os: macos-latest
tox_env: "py38-xdist"
use_coverage: true

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python }} on ${{ matrix.os }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox coverage
- name: Test without coverage
if: "! matrix.use_coverage"
run: "tox -e ${{ matrix.tox_env }}"

- name: Test with coverage
if: "matrix.use_coverage"
env:
_PYTEST_TOX_COVERAGE_RUN: "coverage run -m"
COVERAGE_PROCESS_START: ".coveragerc"
_PYTEST_TOX_EXTRA_DEP: "coverage-enable-subprocess"
run: "tox -vv -e ${{ matrix.tox_env }}"

- name: Prepare coverage token
if: (matrix.use_coverage && ( github.repository == 'pytest-dev/pytest' || github.event_name == 'pull_request' ))
run: |
python scripts/append_codecov_token.py
- name: Report coverage
if: (matrix.use_coverage)
env:
CODECOV_NAME: ${{ matrix.name }}
run: bash scripts/report-coverage.sh -F GHA,${{ runner.os }}

deploy:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest'

runs-on: ubuntu-latest

needs: [build]

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade wheel setuptools tox
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_token }}
- name: Publish GitHub release notes
env:
GH_RELEASE_NOTES_TOKEN: ${{ secrets.release_notes }}
run: |
sudo apt-get install pandoc
tox -e publish-gh-release-notes
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: doc/en/example/py2py3/test_py2.py
repos:
- repo: https://github.com/python/black
rev: 19.3b0
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down
147 changes: 36 additions & 111 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,121 +1,60 @@
language: python
dist: xenial
stages:
- baseline
- name: test
if: repo = pytest-dev/pytest AND tag IS NOT present
- name: deploy
if: repo = pytest-dev/pytest AND tag IS present
python: '3.7'
python: '3.7.4'
cache: false

env:
global:
- PYTEST_ADDOPTS=-vv
- PYTEST_ADDOPTS="-vv --showlocals --durations=100 --exitfirst"
- PYTEST_COVERAGE=1

# setuptools-scm needs all tags in order to obtain a proper version
git:
depth: false

install:
- python -m pip install --upgrade --pre tox

jobs:
include:
# OSX tests - first (in test stage), since they are the slower ones.
- &test-macos
os: osx
osx_image: xcode10.1
language: generic
# Coverage for:
# - py2 with symlink in test_cmdline_python_package_symlink.
env: TOXENV=py27-xdist PYTEST_COVERAGE=1
before_install:
- python -V
- test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 27
- <<: *test-macos
env: TOXENV=py37-pexpect,py37-xdist PYTEST_COVERAGE=1
before_install:
- which python3
- python3 -V
- ln -sfn "$(which python3)" /usr/local/bin/python
- python -V
- test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 37

# Full run of latest (major) supported versions, without xdist.
- env: TOXENV=py27
# Coverage for:
# - TestArgComplete (linux only)
# - numpy
# - verbose=0
- stage: baseline
env: TOXENV=py27-xdist
python: '2.7'
- env: TOXENV=py37
python: '3.7'

# Coverage tracking is slow with pypy, skip it.
- env: TOXENV=pypy-xdist
python: 'pypy'
- env: TOXENV=pypy3-xdist
python: 'pypy3'
- env: TOXENV=py38-xdist
python: '3.8'

- stage: tests
# - _pytest.unittest._handle_skip (via pexpect).
env: TOXENV=py27-pexpect,py27-twisted
python: '2.7'

- env: TOXENV=py34-xdist
python: '3.4'
- env: TOXENV=py35-xdist
python: '3.5'
python: '3.5.9'

# Coverage for:
# - pytester's LsofFdLeakChecker
# - TestArgComplete (linux only)
# - numpy
# Empty PYTEST_ADDOPTS to run this non-verbose.
- env: TOXENV=py37-lsof-numpy-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=
- env: TOXENV=py36-xdist PYTEST_REORDER_TESTS=0
python: '3.6.9'

# Specialized factors for py27.
- env: TOXENV=py27-nobyte-numpy-xdist
python: '2.7'
- env: TOXENV=py27-pluggymaster-xdist
python: '2.7'
- env: TOXENV=py37-numpy-pexpect-twisted
python: '3.7.4'

# Specialized factors for py37.
# Coverage for:
# - test_sys_breakpoint_interception (via pexpect).
- env: TOXENV=py37-pexpect,py37-twisted PYTEST_COVERAGE=1
- env: TOXENV=py37-pluggymaster-xdist
- env: TOXENV=py37-freeze
- env: TOXENV=py37-pexpect,py37-twisted
python: '3.7.4'

# Jobs only run via Travis cron jobs (currently daily).
- env: TOXENV=py38-xdist
python: '3.8-dev'
if: type = cron
# Run also non-verbosely, to gain coverage
- env: TOXENV=py38-xdist PYTEST_ADDOPTS=""
python: '3.8'

- stage: baseline
# Coverage for:
# - _pytest.unittest._handle_skip (via pexpect).
env: TOXENV=py27-pexpect,py27-twisted PYTEST_COVERAGE=1
python: '2.7'
# Use py36 here for faster baseline.
- env: TOXENV=py36-xdist
python: '3.6'
- env: TOXENV=linting,docs,doctesting PYTEST_COVERAGE=1
- env: TOXENV=linting,docs,doctesting
cache:
directories:
- $HOME/.cache/pre-commit

- stage: deploy
python: '3.6'
install: pip install -U setuptools setuptools_scm
script: skip
deploy:
provider: pypi
user: nicoddemus
distributions: sdist bdist_wheel
skip_upload_docs: true
password:
secure: xanTgTUu6XDQVqB/0bwJQXoDMnU5tkwZc5koz6mBkkqZhKdNOi2CLoC1XhiSZ+ah24l4V1E0GAqY5kBBcy9d7NVe4WNg4tD095LsHw+CRU6/HCVIFfyk2IZ+FPAlguesCcUiJSXOrlBF+Wj68wEvLoK7EoRFbJeiZ/f91Ww1sbtDlqXABWGHrmhPJL5Wva7o7+wG7JwJowqdZg1pbQExsCc7b53w4v2RBu3D6TJaTAzHiVsW+nUSI67vKI/uf+cR/OixsTfy37wlHgSwihYmrYLFls3V0bSpahCim3bCgMaFZx8S8xrdgJ++PzBCof2HeflFKvW+VCkoYzGEG4NrTWJoNz6ni4red9GdvfjGH3YCjAKS56h9x58zp2E5rpsb/kVq5/45xzV+dq6JRuhQ1nJWjBC6fSKAc/bfwnuFK3EBxNLkvBssLHvsNjj5XG++cB8DdS9wVGUqjpoK4puaXUWFqy4q3S9F86HEsKNgExtieA9qNx+pCIZVs6JCXZNjr0I5eVNzqJIyggNgJG6RyravsU35t9Zd9doL5g4Y7UKmAGTn1Sz24HQ4sMQgXdm2SyD8gEK5je4tlhUvfGtDvMSlstq71kIn9nRpFnqB6MFlbYSEAZmo8dGbCquoUc++6Rum208wcVbrzzVtGlXB/Ow9AbFMYeAGA0+N/K1e59c=
on:
tags: true
repo: pytest-dev/pytest

matrix:
allow_failures:
- python: '3.8-dev'
env: TOXENV=py38-xdist
# Temporary (https://github.com/pytest-dev/pytest/pull/5334).
- env: TOXENV=pypy3-xdist
python: 'pypy3'

before_script:
- |
# Do not (re-)upload coverage with cron runs.
Expand All @@ -129,27 +68,13 @@ before_script:
export _PYTEST_TOX_COVERAGE_RUN="coverage run -m"
export _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
fi

script: tox --recreate
script: env COLUMNS=120 python -m tox

after_success:
- |
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
set -e
# Add last TOXENV to $PATH.
PATH="$PWD/.tox/${TOXENV##*,}/bin:$PATH"
coverage combine
coverage xml
coverage report -m
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml -n $TOXENV-$TRAVIS_OS_NAME
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh
fi

notifications:
irc:
channels:
- "chat.freenode.net#pytest"
on_success: change
on_failure: change
skip_join: true
email:
- [email protected]
branches:
only:
- 4.6.x
Loading