-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
MNT: Compat with pytest>=8 #15
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: ".github/workflows" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
groups: | ||
actions: | ||
patterns: | ||
- "*" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Run unit tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [ main ] | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
schedule: | ||
# Run every Thursday at 03:53 UTC | ||
- cron: 53 3 * * 4 | ||
|
||
jobs: | ||
tests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python-version: 3.8 | ||
toxenv: py38-test-pytestoldest | ||
- os: windows-latest | ||
python-version: 3.8 | ||
toxenv: py38-test-pytest50 | ||
- os: macos-latest | ||
python-version: 3.8 | ||
toxenv: py38-test-pytest51 | ||
- os: ubuntu-latest | ||
python-version: 3.8 | ||
toxenv: py38-test-pytest52 | ||
- os: windows-latest | ||
python-version: 3.8 | ||
toxenv: py38-test-pytest53 | ||
- os: ubuntu-latest | ||
python-version: 3.8 | ||
toxenv: py38-test-pytest60 | ||
- os: ubuntu-latest | ||
python-version: 3.9 | ||
toxenv: py39-test-pytest61 | ||
- os: ubuntu-latest | ||
python-version: 3.9 | ||
toxenv: py39-test-pytest62 | ||
- os: ubuntu-latest | ||
python-version: '3.10' | ||
toxenv: py310-test-pytest70 | ||
- os: ubuntu-latest | ||
python-version: '3.10' | ||
toxenv: py310-test-pytest71 | ||
- os: windows-latest | ||
python-version: '3.11' | ||
toxenv: py311-test-pytest72 | ||
- os: ubuntu-latest | ||
python-version: '3.11' | ||
toxenv: py311-test-pytest73 | ||
- os: ubuntu-latest | ||
python-version: '3.11' | ||
toxenv: py311-test-pytest74 | ||
toxargs: --pre | ||
- os: macos-latest | ||
python-version: '3.11' | ||
toxenv: py311-test-pytestdev | ||
- os: windows-latest | ||
python-version: '3.11' | ||
toxenv: py311-test-pytestdev | ||
- os: ubuntu-latest | ||
python-version: '3.12' | ||
toxenv: py312-test-pytestdev | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Tox | ||
run: python -m pip install tox | ||
- name: Run Tox | ||
run: tox ${{ matrix.toxargs }} -v -e ${{ matrix.toxenv }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
0.1.3 (unreleased) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given the stable metadata below, I would consider bumping the version number to either 0.2 or even 1.0 |
||
================== | ||
|
||
- No changes yet. | ||
- pytest 8.1 compatibility. [#15] | ||
|
||
- Dropped Python 3.7 support. Minimum supported pytest is now 4.6. [#15] | ||
|
||
0.1.2 (2022-12-11) | ||
================== | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,18 @@ url = https://github.com/astropy/pytest-filter-subpackage | |
author = The Astropy Developers | ||
author_email = [email protected] | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Development Status :: 5 - Production/Stable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💯 |
||
Framework :: Pytest | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: 3.12 | ||
Topic :: Software Development :: Testing | ||
Topic :: Utilities | ||
license = BSD | ||
|
@@ -27,9 +27,9 @@ keywords = pytest, py.test | |
[options] | ||
zip_safe = False | ||
packages = find: | ||
python_requires = >=3.7 | ||
python_requires = >=3.8 | ||
install_requires = | ||
pytest>=3.0 | ||
pytest>=4.6 | ||
|
||
[options.entry_points] | ||
pytest11 = | ||
|
@@ -42,13 +42,16 @@ test = | |
pytest-cov | ||
|
||
[tool:pytest] | ||
minversion = 3.0 | ||
minversion = 4.6 | ||
testpaths = tests pytest_filter_subpackage | ||
xfail_strict = true | ||
filterwarnings = | ||
error | ||
ignore:file format.*:UserWarning | ||
ignore:.*non-empty pattern match.*:FutureWarning | ||
|
||
[flake8] | ||
max-line-length = 100 | ||
|
||
[bdist_wheel] | ||
universal = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If all else is looking good, I'll add the 8.0.x jobs here, too