Skip to content
Merged
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
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: tests

on:
pull_request:
push:
branches: [version-4.5.x]
workflow_dispatch:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# Python 2.7 is the reason this branch exists. setup-python no longer
# ships 2.7, so the suite runs in the official image.
- python: "2.7"
pins: "pytest==4.6.11 mock==3.0.5 pyasn1==0.4.8"
# 3.8 is an end-of-life Python 3 near the 3.5-3.7 that setup.py lists;
# 3.13 is one still in support.
- python: "3.8"
pins: "pytest mock pyasn1"
- python: "3.13"
pins: "pytest mock pyasn1"
container: python:${{ matrix.python }}
steps:
- uses: actions/checkout@v5
- name: Install
run: |
python -m pip install --disable-pip-version-check ${{ matrix.pins }}
python -m pip install --disable-pip-version-check --no-deps -e .
# tox.ini's [pytest] addopts asks for pytest-cov; CI only needs the result.
- name: Test
run: python -m pytest -o addopts= -v tests
Loading