Skip to content

Commit 92a4e5a

Browse files
authored
Merge pull request #67 from okken/test-me-setup-workflows
Migrate CI to GH Actions
2 parents a57dcde + c966d38 commit 92a4e5a

File tree

8 files changed

+110
-88
lines changed

8 files changed

+110
-88
lines changed

.github/workflows/test.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- "test-me-*"
8+
9+
pull_request:
10+
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
18+
package:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Build and Check Package
23+
uses: hynek/[email protected]
24+
25+
test:
26+
27+
needs: [package]
28+
29+
runs-on: ${{ matrix.os }}
30+
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.9", "pypy3.10"]
35+
os: [ubuntu-latest, windows-latest]
36+
include:
37+
- python: "3.7"
38+
tox_env: "py37"
39+
- python: "3.8"
40+
tox_env: "py38"
41+
- python: "3.9"
42+
tox_env: "py39"
43+
- python: "3.10"
44+
tox_env: "py310"
45+
- python: "3.11"
46+
tox_env: "py311"
47+
- python: "pypy3.9"
48+
tox_env: "pypy3"
49+
- python: "pypy3.10"
50+
tox_env: "pypy3"
51+
52+
steps:
53+
- uses: actions/checkout@v3
54+
55+
- name: Download Package
56+
uses: actions/download-artifact@v3
57+
with:
58+
name: Packages
59+
path: dist
60+
61+
- name: Set up Python
62+
uses: actions/setup-python@v4
63+
with:
64+
python-version: ${{ matrix.python }}
65+
66+
- name: Install tox
67+
run: |
68+
python -m pip install --upgrade pip
69+
pip install tox
70+
71+
- name: Test
72+
shell: bash
73+
run: tox run -e ${{ matrix.tox_env }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ dist
88
*.egg-info
99
*.pyc
1010
*.pyo
11+
.idea
12+
venv

.travis.yml

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

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Release Notes
22
-------------
3+
**Unreleased**
4+
5+
* Migrate CI to GitHub Actions
6+
* Officially Support Python 3.7+
37

48
**0.9.1 (2020-10-31)**
59

README.rst

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,34 @@ pytest-repeat
44
pytest-repeat is a plugin for `pytest <https://docs.pytest.org>`_ that makes it
55
easy to repeat a single test, or multiple tests, a specific number of times.
66

7-
.. image:: https://img.shields.io/badge/license-MPL%202.0-blue.svg
7+
|license| |python| |version| |anaconda| |ci| |issues|
8+
9+
.. |license| image:: https://img.shields.io/badge/license-MPL%202.0-blue.svg
810
:target: https://github.com/pytest-dev/pytest-repeat/blob/master/LICENSE
9-
:alt: License
10-
.. image:: https://img.shields.io/pypi/v/pytest-repeat.svg
11-
:target: https://pypi.python.org/pypi/pytest-repeat/
12-
:alt: PyPI
13-
.. image:: https://img.shields.io/pypi/pyversions/pytest-repeat.svg
14-
:target: https://pypi.org/project/pytest-repeat/
15-
:alt: Python versions
16-
.. image:: https://img.shields.io/travis/pytest-dev/pytest-repeat.svg
17-
:target: https://travis-ci.org/pytest-dev/pytest-repeat/
18-
:alt: Travis
19-
.. image:: https://img.shields.io/github/issues-raw/pytest-dev/pytest-repeat.svg
11+
12+
.. |version| image:: http://img.shields.io/pypi/v/pytest-repeat.svg
13+
:target: https://pypi.python.org/pypi/pytest-repeat
14+
15+
.. |anaconda| image:: https://img.shields.io/conda/vn/conda-forge/pytest-repeat.svg
16+
:target: https://anaconda.org/conda-forge/pytest-repeat
17+
18+
.. |ci| image:: https://github.com/pytest-dev/pytest-repeat/workflows/test/badge.svg
19+
:target: https://github.com/pytest-dev/pytest-repeat/actions
20+
21+
.. |python| image:: https://img.shields.io/pypi/pyversions/pytest-repeat.svg
22+
:target: https://pypi.python.org/pypi/pytest-repeat/
23+
24+
.. |issues| image:: https://img.shields.io/github/issues-raw/pytest-dev/pytest-repeat.svg
2025
:target: https://github.com/pytest-dev/pytest-repeat/issues
21-
:alt: Issues
22-
.. image:: https://img.shields.io/requires/github/pytest-dev/pytest-repeat.svg
23-
:target: https://requires.io/github/pytest-dev/pytest-repeat/requirements/?branch=master
24-
:alt: Requirements
26+
2527

2628
Requirements
2729
------------
2830

2931
You will need the following prerequisites in order to use pytest-repeat:
3032

31-
- Python 2.7, 3.5+ or PyPy
32-
- pytest 3.6 or newer
33+
- Python 3.7+ or PyPy3
34+
- pytest 4 or newer
3335

3436
Installation
3537
------------

setup.cfg

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

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use_scm_version=True,
55
description='pytest plugin for repeating tests',
66
long_description=open('README.rst').read(),
7+
long_description_content_type='text/x-rst',
78
author='Bob Silverberg',
89
author_email='[email protected]',
910
url='https://github.com/pytest-dev/pytest-repeat',
@@ -13,7 +14,7 @@
1314
install_requires=['pytest>=3.6'],
1415
license='Mozilla Public License 2.0 (MPL 2.0)',
1516
keywords='pytest pytest repeat',
16-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
17+
python_requires='>=3.7',
1718
classifiers=[
1819
'Development Status :: 5 - Production/Stable',
1920
'Framework :: Pytest',
@@ -26,10 +27,9 @@
2627
'Topic :: Software Development :: Testing',
2728
'Topic :: Utilities',
2829
'Programming Language :: Python',
29-
'Programming Language :: Python :: 2.7',
30-
'Programming Language :: Python :: 3.5',
31-
'Programming Language :: Python :: 3.6',
3230
'Programming Language :: Python :: 3.7',
3331
'Programming Language :: Python :: 3.8',
3432
'Programming Language :: Python :: 3.9',
33+
'Programming Language :: Python :: 3.10',
34+
'Programming Language :: Python :: 3.11',
3535
])

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@
66
[tox]
77
minversion = 3.4.0
88
isolated_build = true
9-
envlist = py{27,35,36,37,38,39,py,py3}-pytest{3,4,6}, flake8
9+
envlist =
10+
py{37,38,39,310,311,py3}-pytest7
11+
py37-pytest{4,5,6}
12+
flake8
1013

1114
[testenv]
1215
commands = pytest {posargs}
1316
deps =
14-
pytest3: pytest~=3.6
1517
pytest4: pytest~=4.6
16-
pytest6: pytest>=6,<7
18+
pytest5: pytest~=5.4
19+
pytest6: pytest~=6.2
20+
pytest7: pytest>=7
1721

1822
[testenv:flake8]
1923
basepython = python

0 commit comments

Comments
 (0)