Skip to content

Remove appveyor #547

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

Merged
merged 20 commits into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
46 changes: 0 additions & 46 deletions .appveyor.yml

This file was deleted.

14 changes: 8 additions & 6 deletions .cookiecutterrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

default_context:
allow_tests_inside_package: no
appveyor: yes
appveyor: no
c_extension_function: '-'
c_extension_module: '-'
c_extension_optional: no
Expand All @@ -16,10 +16,10 @@ default_context:
command_line_interface: no
command_line_interface_bin_name: '-'
coveralls: no
coveralls_token: '[Required for Appveyor, take it from https://coveralls.io/github/ionelmc/pytest-cov]'
distribution_name: pytest-cov
email: [email protected]
full_name: Ionel Cristian Mărieș
github_actions: yes
legacy_python: yes
license: MIT license
linter: flake8
Expand All @@ -29,9 +29,10 @@ default_context:
project_short_description: This plugin produces coverage reports. It supports centralised testing and distributed testing in both load and each modes. It also supports coverage of subprocesses.
pypi_badge: yes
pypi_disable_upload: no
release_date: '2020-06-12'
release_date: '2021-10-04'
repo_hosting: github.com
repo_hosting_domain: github.com
repo_main_branch: master
repo_name: pytest-cov
repo_username: pytest-dev
requiresio: yes
Expand All @@ -45,9 +46,10 @@ default_context:
test_matrix_configurator: no
test_matrix_separate_coverage: no
test_runner: pytest
travis: yes
travis: no
travis_osx: no
version: 2.10.1
version: 3.0.0
version_manager: bump2version
website: http://blog.ionelmc.ro
year_from: '2010'
year_to: '2020'
year_to: '2022'
234 changes: 160 additions & 74 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,81 +1,167 @@
name: Test

on: [push, pull_request, workflow_dispatch]

env:
FORCE_COLOR: 1

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version: ["pypy-3.6", "pypy-3.7", "3.6", "3.7", "3.8", "3.9", "3.10-dev"]
tox-extra-versions: [
"pytest46-xdist127",
"pytest46-xdist133",
"pytest54-xdist133",
"pytest62-xdist202",
]
include:
# Add new helper variables to existing jobs
- {python-version: "pypy-3.6", tox-python-version: "pypy3"}
- {python-version: "pypy-3.7", tox-python-version: "pypy3"}
- {python-version: "3.6", tox-python-version: "py36"}
- {python-version: "3.7", tox-python-version: "py37"}
- {python-version: "3.8", tox-python-version: "py38"}
- {python-version: "3.9", tox-python-version: "py39"}
- {python-version: "3.10-dev", tox-python-version: "py310"}
exclude:
# Remove some jobs from the matrix
- {tox-extra-versions: "pytest46-xdist127", python-version: "3.8"}
- {tox-extra-versions: "pytest46-xdist127", python-version: "3.9"}
- {tox-extra-versions: "pytest46-xdist133", python-version: "3.9"}
- {tox-extra-versions: "pytest54-xdist133", python-version: "3.9"}
- {tox-extra-versions: "pytest46-xdist127", python-version: "3.10-dev"}
- {tox-extra-versions: "pytest46-xdist133", python-version: "3.10-dev"}
- {tox-extra-versions: "pytest54-xdist133", python-version: "3.10-dev"}

- name: 'check'
python: '3.9'
toxpython: 'python3.9'
tox_env: 'check'
os: 'ubuntu-latest'
- name: 'docs'
python: '3.9'
toxpython: 'python3.9'
tox_env: 'docs'
os: 'ubuntu-latest'
- name: 'py36-pytest70-xdist250-coverage62 (ubuntu)'
python: '3.6'
toxpython: 'python3.6'
python_arch: 'x64'
tox_env: 'py36-pytest70-xdist250-coverage62'
os: 'ubuntu-latest'
- name: 'py36-pytest70-xdist250-coverage62 (windows)'
python: '3.6'
toxpython: 'python3.6'
python_arch: 'x64'
tox_env: 'py36-pytest70-xdist250-coverage62'
os: 'windows-latest'
- name: 'py36-pytest70-xdist250-coverage62 (macos)'
python: '3.6'
toxpython: 'python3.6'
python_arch: 'x64'
tox_env: 'py36-pytest70-xdist250-coverage62'
os: 'macos-latest'
- name: 'py37-pytest71-xdist250-coverage64 (ubuntu)'
python: '3.7'
toxpython: 'python3.7'
python_arch: 'x64'
tox_env: 'py37-pytest71-xdist250-coverage64'
os: 'ubuntu-latest'
- name: 'py37-pytest71-xdist250-coverage64 (windows)'
python: '3.7'
toxpython: 'python3.7'
python_arch: 'x64'
tox_env: 'py37-pytest71-xdist250-coverage64'
os: 'windows-latest'
- name: 'py37-pytest71-xdist250-coverage64 (macos)'
python: '3.7'
toxpython: 'python3.7'
python_arch: 'x64'
tox_env: 'py37-pytest71-xdist250-coverage64'
os: 'macos-latest'
- name: 'py38-pytest71-xdist250-coverage64 (ubuntu)'
python: '3.8'
toxpython: 'python3.8'
python_arch: 'x64'
tox_env: 'py38-pytest71-xdist250-coverage64'
os: 'ubuntu-latest'
- name: 'py38-pytest71-xdist250-coverage64 (windows)'
python: '3.8'
toxpython: 'python3.8'
python_arch: 'x64'
tox_env: 'py38-pytest71-xdist250-coverage64'
os: 'windows-latest'
- name: 'py38-pytest71-xdist250-coverage64 (macos)'
python: '3.8'
toxpython: 'python3.8'
python_arch: 'x64'
tox_env: 'py38-pytest71-xdist250-coverage64'
os: 'macos-latest'
- name: 'py39-pytest71-xdist250-coverage64 (ubuntu)'
python: '3.9'
toxpython: 'python3.9'
python_arch: 'x64'
tox_env: 'py39-pytest71-xdist250-coverage64'
os: 'ubuntu-latest'
- name: 'py39-pytest71-xdist250-coverage64 (windows)'
python: '3.9'
toxpython: 'python3.9'
python_arch: 'x64'
tox_env: 'py39-pytest71-xdist250-coverage64'
os: 'windows-latest'
- name: 'py39-pytest71-xdist250-coverage64 (macos)'
python: '3.9'
toxpython: 'python3.9'
python_arch: 'x64'
tox_env: 'py39-pytest71-xdist250-coverage64'
os: 'macos-latest'
- name: 'py310-pytest71-xdist250-coverage64 (ubuntu)'
python: '3.10'
toxpython: 'python3.10'
python_arch: 'x64'
tox_env: 'py310-pytest71-xdist250-coverage64'
os: 'ubuntu-latest'
- name: 'py310-pytest71-xdist250-coverage64 (windows)'
python: '3.10'
toxpython: 'python3.10'
python_arch: 'x64'
tox_env: 'py310-pytest71-xdist250-coverage64'
os: 'windows-latest'
- name: 'py310-pytest71-xdist250-coverage64 (macos)'
python: '3.10'
toxpython: 'python3.10'
python_arch: 'x64'
tox_env: 'py310-pytest71-xdist250-coverage64'
os: 'macos-latest'
- name: 'pypy37-pytest71-xdist250-coverage64 (ubuntu)'
python: 'pypy-3.7'
toxpython: 'pypy3.7'
python_arch: 'x64'
tox_env: 'pypy37-pytest71-xdist250-coverage64'
os: 'ubuntu-latest'
- name: 'pypy37-pytest71-xdist250-coverage64 (windows)'
python: 'pypy-3.7'
toxpython: 'pypy3.7'
python_arch: 'x64'
tox_env: 'pypy37-pytest71-xdist250-coverage64'
os: 'windows-latest'
- name: 'pypy37-pytest71-xdist250-coverage64 (macos)'
python: 'pypy-3.7'
toxpython: 'pypy3.7'
python_arch: 'x64'
tox_env: 'pypy37-pytest71-xdist250-coverage64'
os: 'macos-latest'
- name: 'pypy38-pytest71-xdist250-coverage64 (ubuntu)'
python: 'pypy-3.8'
toxpython: 'pypy3.8'
python_arch: 'x64'
tox_env: 'pypy38-pytest71-xdist250-coverage64'
os: 'ubuntu-latest'
- name: 'pypy38-pytest71-xdist250-coverage64 (windows)'
python: 'pypy-3.8'
toxpython: 'pypy3.8'
python_arch: 'x64'
tox_env: 'pypy38-pytest71-xdist250-coverage64'
os: 'windows-latest'
- name: 'pypy38-pytest71-xdist250-coverage64 (macos)'
python: 'pypy-3.8'
toxpython: 'pypy3.8'
python_arch: 'x64'
tox_env: 'pypy38-pytest71-xdist250-coverage64'
os: 'macos-latest'
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"

- name: Cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
test-${{ matrix.python-version }}-v1-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
test-${{ matrix.python-version }}-v1-

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U wheel
python -m pip install --progress-bar=off tox -rci/requirements.txt
virtualenv --version
pip --version
tox --version

- name: Tox tests
run: |
tox -v -e ${{ matrix.tox-python-version }}-${{ matrix.tox-extra-versions }}-coverage55

allgood:
needs: test
runs-on: ubuntu-latest
name: Test successful
steps:
- name: Success
run: echo Test successful
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.python_arch }}
- name: install dependencies
run: |
python -mpip install --progress-bar=off -r ci/requirements.txt
virtualenv --version
pip --version
tox --version
pip list --format=freeze
- name: test
env:
TOXPYTHON: '${{ matrix.toxpython }}'
run: >
tox -e ${{ matrix.tox_env }} -v
28 changes: 14 additions & 14 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,25 @@ Changelog
=========


3.1.0 (future)
4.0.0 (future)
-------------------

**Note that this release drops support for multiprocessing.**


* `--cov-fail-under` no longer causes `pytest --collect-only` to fail
Contributed by Zac Hatfield-Dodds in
`#511 <https://github.com/pytest-dev/pytest-cov/pull/511>`_.
* Dropped support for multiprocessing (mostly because `issue 82408 <https://github.com/python/cpython/issues/82408>`_). This feature was
mostly working but made out test suite very flaky and slow.

There is builtin multiprocessing support in coverage and you can switch to that if you feel lucky. All you need is this in your
``.coveragerc``::

[run]
concurrency = multiprocessing
parallel = true
sigterm = true


3.0.0 (2021-10-04)
Expand Down Expand Up @@ -36,17 +49,6 @@ Changelog
Contributed by Thomas Grainger in
`#477 <https://github.com/pytest-dev/pytest-cov/pull/477>`_.


2.13.0 (2021-06-01)
-------------------

* Changed the `toml` requirement to be always be directly required (instead of being required through a coverage extra).
This fixes issues with pip-compile (`pip-tools#1300 <https://github.com/jazzband/pip-tools/issues/1300>`_).
Contributed by Sorin Sbarnea in `#472 <https://github.com/pytest-dev/pytest-cov/pull/472>`_.
* Documented ``show_contexts``.
Contributed by Brian Rutledge in `#473 <https://github.com/pytest-dev/pytest-cov/pull/473>`_.


2.12.1 (2021-06-01)
-------------------

Expand Down Expand Up @@ -196,8 +198,6 @@ Changelog
`#272 <https://github.com/pytest-dev/pytest-cov/pull/272>`_,
`#271 <https://github.com/pytest-dev/pytest-cov/pull/271>`_ and
`#269 <https://github.com/pytest-dev/pytest-cov/pull/269>`_.
* Improved documentation regarding subprocess and multiprocessing.
Contributed in `#265 <https://github.com/pytest-dev/pytest-cov/pull/265>`_.
* Improved ``pytest_cov.embed.cleanup_on_sigterm`` to be reentrant (signal deliveries while signal handling is
running won't break stuff).
* Added ``pytest_cov.embed.cleanup_on_signal`` for customized cleanup.
Expand Down
Loading