Skip to content

Commit 696beae

Browse files
authored
Add CI tests for Python 3.13 and Python3.14 (#851)
* Add CI tests for Python 3.13 and Python3.14 - Get rid of tests for Python 3.8 - Add macos in the tests matrix as well * Get rid of tox and use pytest and add pypy, mypy coverage * Update README.rst * Install types-setuptools for mypy * Help coveralls run on Github
1 parent 51d0c83 commit 696beae

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,50 @@ jobs:
1010
name: Lint
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-python@v5
13+
- uses: actions/checkout@v5
14+
- uses: actions/setup-python@v6
1515
- uses: pre-commit/[email protected]
1616

1717
test:
18-
name: Unit Tests
19-
runs-on: ubuntu-latest
18+
name: Unit tests on Python ${{ matrix.python-version }} on ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
2020
strategy:
21-
max-parallel: 5
21+
fail-fast: false
2222
matrix:
23-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
23+
os: [ubuntu-latest, macos-latest]
24+
python-version: ["3.9", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.9", "pypy3.10"]
2425

2526
steps:
26-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v5
28+
2729
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@v6
2931
with:
3032
python-version: ${{ matrix.python-version }}
3133

3234
- name: Install dependencies
33-
run: python -m pip install -U pip -r requirements-dev.txt "coveralls<3.0.0"
35+
run: python -m pip install -U pip -r requirements-dev.txt coveralls
3436

3537
- name: Run test suite
3638
env:
37-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
3839
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
41+
COVERALLS_PARALLEL: "true"
42+
OVERALLS_SERVICE_JOB_ID: ${{ github.run_id }}
3943
run: |
40-
tox
41-
coveralls
44+
coverage run -m pytest
45+
coverage xml
46+
coveralls --service=github
47+
48+
mypy:
49+
name: Type Check
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v5
53+
- uses: actions/setup-python@v6
54+
with:
55+
python-version: "3.12"
56+
- run: pip install mypy
57+
- run: |
58+
pip install
59+
mypy .

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Installation
3232

3333
.. _installation_start:
3434

35-
|Brand| supports python ``3.6+``. It may also work on pypy, cython, and jython, but is not being tested for these versions.
35+
|Brand| supports is tested for supported Python, i.e. 3.9+. It is tested for PyPy3.9 and PyPy3.10. It may also work Cython, and Jython but is not being tested for in the CI script.
3636

3737
To install |Brand| run the following command:
3838

requirements-dev.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ numpydoc==1.1.0
77

88
# Testing
99
parameterized==0.7.0
10-
tox==3.14.3
11-
tox-venv==0.4.0
12-
tox-gh-actions==0.3.0
1310
coverage==5.1
11+
pytest

tox.ini

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

0 commit comments

Comments
 (0)