Skip to content

Commit 948f137

Browse files
authored
Merge pull request #609 from nicoddemus/gh-actions
2 parents 2dcb407 + db896a9 commit 948f137

6 files changed

Lines changed: 21 additions & 106 deletions

File tree

.appveyor.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
tox_env:
14-
- "py35-pytestlatest"
15-
- "py36-pytestlatest"
16-
- "py37-pytestlatest"
17-
- "py38-pytestlatest"
18-
- "py39-pytestlatest"
19-
- "py38-pytestmaster"
20-
- "py38-psutil"
13+
tox_env:
14+
- "py35-pytestlatest"
15+
- "py36-pytestlatest"
16+
- "py37-pytestlatest"
17+
- "py38-pytestlatest"
18+
- "py39-pytestlatest"
19+
- "py38-pytestmaster"
20+
- "py38-psutil"
2121
- "linting"
22-
22+
2323
os: [ubuntu-latest, windows-latest]
2424
include:
2525
- tox_env: "py35-pytestlatest"
@@ -37,7 +37,7 @@ jobs:
3737
- tox_env: "py38-psutil"
3838
python: "3.8"
3939
- tox_env: "linting"
40-
python: "3.8"
40+
python: "3.7"
4141

4242
steps:
4343
- uses: actions/checkout@v1

.travis.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@
1111
:alt: Python versions
1212
:target: https://pypi.python.org/pypi/pytest-xdist
1313

14-
.. image:: https://travis-ci.org/pytest-dev/pytest-xdist.svg?branch=master
15-
:alt: Travis CI build status
16-
:target: https://travis-ci.org/pytest-dev/pytest-xdist
17-
18-
.. image:: https://ci.appveyor.com/api/projects/status/56eq1a1avd4sdd7e/branch/master?svg=true
19-
:alt: AppVeyor build status
20-
:target: https://ci.appveyor.com/project/pytestbot/pytest-xdist
14+
.. image:: https://github.com/pytest-dev/pytest-xdist/workflows/build/badge.svg
15+
:target: https://github.com/pytest-dev/pytest-xdist/actions
2116

2217
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
2318
:target: https://github.com/ambv/black

testing/acceptance_test.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -772,19 +772,23 @@ def test_warning_captured_deprecated_in_pytest_6(self, testdir):
772772

773773
testdir.makeconftest(
774774
"""
775-
def pytest_warning_captured():
776-
assert False, "this hook should not be called in this version"
775+
def pytest_warning_captured(warning_message):
776+
if warning_message == "my custom worker warning":
777+
assert False, (
778+
"this hook should not be called from workers "
779+
"in this version: {}"
780+
).format(warning_message)
777781
"""
778782
)
779783
testdir.makepyfile(
780784
"""
781785
import warnings
782786
def test():
783-
warnings.warn("custom warning")
787+
warnings.warn("my custom worker warning")
784788
"""
785789
)
786790
result = testdir.runpytest("-n1")
787-
result.stdout.fnmatch_lines(["* 1 passed in *"])
791+
result.stdout.fnmatch_lines(["*1 passed*"])
788792
result.stdout.no_fnmatch_line("*this hook should not be called in this version")
789793

790794
@pytest.mark.parametrize("n", ["-n0", "-n1"])

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ commands =
2424
[testenv:linting]
2525
skip_install = True
2626
usedevelop = True
27+
passenv = PRE_COMMIT_HOME
2728
deps =
2829
pre-commit
2930
commands = pre-commit run --all-files --show-diff-on-failure

0 commit comments

Comments
 (0)