Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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
22 changes: 10 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Test
on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12-dev']
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12', '3.13']
max-parallel: 1

steps:
Expand All @@ -17,7 +21,7 @@ jobs:
run: echo $GITHUB_CONTEXT

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -31,16 +35,10 @@ jobs:
${{ runner.os }}-pip-

- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v4
if: "!endsWith(matrix.python-version, '-dev')"
with:
python-version: ${{ matrix.python-version }}

- name: Setup python ${{ matrix.python-version }} (via deadsnakes)
uses: deadsnakes/[email protected]
if: "endsWith(matrix.python-version, '-dev')"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install tox and test related
run: |
Expand All @@ -66,12 +64,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Framework :: Sphinx",
]

Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{37,38,39,310,311,312-dev},
py{37,38,39,310,311,312,313},
flake8,
mypy

Expand All @@ -11,7 +11,8 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312-dev
3.12: py312
3.13: py313

[testenv]
deps=-e.[transifex,test]
Expand Down