Skip to content

t explicitly close gen #18

t explicitly close gen

t explicitly close gen #18

Workflow file for this run

name: Run Tests
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test ${{ matrix.os }}-${{ matrix.pyver }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
pyver: 'pypy-3.11'
arch: x64
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyver }}
architecture: ${{ matrix.arch }}
- name: Install package dependency (if needed)
if: matrix.pyver == '3.13t'
run: |
sudo apt update
sudo apt install -y libxml2-dev libxslt1-dev
- name: Install package
if: matrix.pyver != '3.13t'
run: pip install .[adhoc_ssl]
# A dependency of cryptography does not support free-threaded
- name: Install package (free-threaded)
if: matrix.pyver == '3.13t'
run: pip install .
- name: Run tests
run: python -m unittest -v -k test_search_limit
- name: Ensure all dependency can be installed
if: matrix.pyver != '3.8'
run: pip install --group dev
- name: Ensure all dependency can be installed (py38)
if: matrix.pyver == '3.8'
run: |
pip install dependency-groups
dependency-groups dev -o requirements.txt
pip install -r requirements.txt