Skip to content

Commit

Permalink
Merge pull request #609 from nicoddemus/gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Dec 13, 2020
2 parents 2dcb407 + db896a9 commit 948f137
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 106 deletions.
21 changes: 0 additions & 21 deletions .appveyor.yml

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
strategy:
fail-fast: false
matrix:
tox_env:
- "py35-pytestlatest"
- "py36-pytestlatest"
- "py37-pytestlatest"
- "py38-pytestlatest"
- "py39-pytestlatest"
- "py38-pytestmaster"
- "py38-psutil"
tox_env:
- "py35-pytestlatest"
- "py36-pytestlatest"
- "py37-pytestlatest"
- "py38-pytestlatest"
- "py39-pytestlatest"
- "py38-pytestmaster"
- "py38-psutil"
- "linting"

os: [ubuntu-latest, windows-latest]
include:
- tox_env: "py35-pytestlatest"
Expand All @@ -37,7 +37,7 @@ jobs:
- tox_env: "py38-psutil"
python: "3.8"
- tox_env: "linting"
python: "3.8"
python: "3.7"

steps:
- uses: actions/checkout@v1
Expand Down
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

9 changes: 2 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@
:alt: Python versions
:target: https://pypi.python.org/pypi/pytest-xdist

.. image:: https://travis-ci.org/pytest-dev/pytest-xdist.svg?branch=master
:alt: Travis CI build status
:target: https://travis-ci.org/pytest-dev/pytest-xdist

.. image:: https://ci.appveyor.com/api/projects/status/56eq1a1avd4sdd7e/branch/master?svg=true
:alt: AppVeyor build status
:target: https://ci.appveyor.com/project/pytestbot/pytest-xdist
.. image:: https://github.com/pytest-dev/pytest-xdist/workflows/build/badge.svg
:target: https://github.com/pytest-dev/pytest-xdist/actions

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/ambv/black
Expand Down
12 changes: 8 additions & 4 deletions testing/acceptance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,19 +772,23 @@ def test_warning_captured_deprecated_in_pytest_6(self, testdir):

testdir.makeconftest(
"""
def pytest_warning_captured():
assert False, "this hook should not be called in this version"
def pytest_warning_captured(warning_message):
if warning_message == "my custom worker warning":
assert False, (
"this hook should not be called from workers "
"in this version: {}"
).format(warning_message)
"""
)
testdir.makepyfile(
"""
import warnings
def test():
warnings.warn("custom warning")
warnings.warn("my custom worker warning")
"""
)
result = testdir.runpytest("-n1")
result.stdout.fnmatch_lines(["* 1 passed in *"])
result.stdout.fnmatch_lines(["*1 passed*"])
result.stdout.no_fnmatch_line("*this hook should not be called in this version")

@pytest.mark.parametrize("n", ["-n0", "-n1"])
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ commands =
[testenv:linting]
skip_install = True
usedevelop = True
passenv = PRE_COMMIT_HOME
deps =
pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
Expand Down

0 comments on commit 948f137

Please sign in to comment.