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
55 changes: 51 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,59 @@ jobs:
run: |
flake8

build:
name: "Build and check distributions"
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build sdist and wheel
run: python -m build
- name: Check distributions
run: twine check --strict dist/*

docs:
name: "Build documentation"
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r doc/requirements.txt
- name: Build HTML docs
run: sphinx-build -W --keep-going -b html doc doc/_build/html

test:
needs: [ lint ]
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14" ]
os: [ ubuntu-latest ]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.10", "pypy3.11" ]
include:
- os: windows-latest
python-version: "3.13"
- os: macos-latest
python-version: "3.13"

steps:
- uses: actions/checkout@v4
Expand All @@ -55,14 +101,15 @@ jobs:

- name: Test
run: |
make coverage
coverage run --source=jsonpointer -m unittest
coverage report -m
coverage lcov

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
with:
file: coverage.lcov
flag-name: python-${{ matrix.python-version }}
flag-name: ${{ matrix.os }}-python-${{ matrix.python-version }}
parallel: true

coveralls:
Expand Down
6 changes: 3 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ sphinx:

# We recommend specifying your dependencies to enable reproducible builds:
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
# python:
# install:
# - requirements: docs/requirements.txt
python:
install:
- requirements: doc/requirements.txt
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sphinx
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[flake8]
max-line-length = 120
filename = *.py,./bin/jsonpointer
exclude = .git,.tox,dist,doc,*egg,build,.venv
Loading