Skip to content

Commit

Permalink
py312 (#70)
Browse files Browse the repository at this point in the history
updates to tox and ci for 
- Python 3.12 
- testing pytest versions 4, 5, 6
  • Loading branch information
okken authored Oct 4, 2023
1 parent 6d8c6b0 commit 394cf77
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 12 deletions.
62 changes: 52 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.9", "pypy3.10"]
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.10"]
os: [ubuntu-latest, windows-latest]
include:
- python: "3.7"
tox_env: "py37"
tox_env: "py37-pytest7"
- python: "3.8"
tox_env: "py38"
tox_env: "py38-pytest7"
- python: "3.9"
tox_env: "py39"
tox_env: "py39-pytest7"
- python: "3.10"
tox_env: "py310"
tox_env: "py310-pytest7"
- python: "3.11"
tox_env: "py311"
- python: "pypy3.9"
tox_env: "pypy3"
tox_env: "py311-pytest7"
- python: "3.12"
tox_env: "py312-pytest7"
- python: "pypy3.10"
tox_env: "pypy3"
tox_env: "pypy3-pytest7"

steps:
- uses: actions/checkout@v3
Expand All @@ -70,4 +70,46 @@ jobs:
- name: Test
shell: bash
run: tox run -e ${{ matrix.tox_env }}
run: tox run -e ${{ matrix.tox_env }}


test-legacy-pytest:

needs: [package]

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
pytest: ["4", "5", "6"]
include:
- pytest: "4"
tox_env: "py37-pytest4"
- pytest: "5"
tox_env: "py37-pytest5"
- pytest: "6"
tox_env: "py37-pytest6"

steps:
- uses: actions/checkout@v3

- name: Download Package
uses: actions/download-artifact@v3
with:
name: Packages
path: dist

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.7"

- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test
shell: bash
run: tox run -e ${{ matrix.tox_env }}
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Release Notes
-------------

**0.9.3dev (unreleased)**

* Add tox and CI testing on Python 3.12
* Add legacy pytest versions to CI.
* Now testing pytest 4, 5, 6
* Non-legacy testing uses latest pytest, which is pytest 7

**0.9.2 (2023-Oct-1)**

* Migrate CI to GitHub Actions
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
])
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
minversion = 3.4.0
isolated_build = true
envlist =
py{37,38,39,310,311,py3}-pytest7
py{37,38,39,310,311,312,py3}-pytest7
py37-pytest{4,5,6}
flake8

Expand All @@ -20,6 +20,6 @@ deps =
pytest7: pytest>=7

[testenv:flake8]
basepython = python
basepython = py311
deps = flake8
commands = flake8 {posargs:pytest_repeat.py test_repeat.py}

0 comments on commit 394cf77

Please sign in to comment.