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
20 changes: 11 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9, '3.10', 3.11, '3.12', '3.13', 'pypy-3.9']
python-version: [3.9, '3.10', 3.11, '3.12', '3.13', '3.14', 'pypy-3.11']
exclude:
# hangs
# too slow
- os: macos-latest
python-version: pypy-3.9
python-version: pypy-3.11
- os: windows-latest
python-version: pypy-3.9
python-version: pypy-3.11
include:
- os: ubuntu-latest
pip-cache: ~/.cache/pip
Expand All @@ -31,9 +31,11 @@ jobs:
python-version: 3.9
build-docs: true
- os: ubuntu-latest
python-version: 3.11
python-version: 3.12
build-docs: true
build-dist: true
- python-version: 3.12
run-mypy: true
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -53,15 +55,14 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade poetry build
pipx install poetry build
poetry install
- name: Run tests
run: |
poetry run coverage run --branch setup.py test
poetry run coverage xml -i
- name: Run mypy
# mypy is too slow there
if: matrix.python-version != 'pypy-3.9'
if: matrix.run-mypy
run: |
poetry run mypy .
- name: Run flake8
Expand All @@ -72,11 +73,12 @@ jobs:
- name: Build docs
if: matrix.build-docs
run: |
poetry install --with docs
poetry run sphinx-build -W -a -E -b html -n docs docs/_build
- name: Build dist
if: matrix.build-dist
run: |
python -m build
pyproject-build
- name: Upload dist
if: matrix.build-dist
uses: actions/upload-artifact@v4
Expand Down
15 changes: 10 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ authors = []
[tool.poetry.dependencies]
python = "^3.9"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "^8.2"
hypothesis = "^6.50.1"
flake8 = "^7.1.0"
mypy = "1.10.1"
mypy = "1.15.0"
coverage = "^7.2.5"
Sphinx = "^7.1"
sphinx-rtd-theme = "^2.0.0"
sphinx-autobuild = "^2021.3.14"
setuptools = "^70.1.1"

[tool.poetry.group.fuzzing]
Expand All @@ -24,6 +21,14 @@ optional = true
[tool.poetry.group.fuzzing.dependencies]
python-afl = "^0.7.3"

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
Sphinx = "^7.1"
sphinx-rtd-theme = "^2.0.0"
sphinx-autobuild = "^2021.3.14"

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
Expand Down