Skip to content

build: allow Python 3.14 #110

build: allow Python 3.14

build: allow Python 3.14 #110

Workflow file for this run

name: Test
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
python-version: ['3.13', '3.14', 'pypy-3.10']
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install dependencies
run: |
pip install ".[dev]"
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src --exclude=src/ndn/contrib --count --ignore=F403,F405,W503,E226 \
--exit-zero --max-complexity=20 --max-line-length=120 --statistics
flake8 tests --count --ignore=F403,F405,W503,E226,E222,W504 \
--exit-zero --max-complexity=50 --max-line-length=120 --statistics
- name: Test with pytest
run: |
pytest tests