Skip to content

chore: Support anyio<3 and anyio>=4 #22

chore: Support anyio<3 and anyio>=4

chore: Support anyio<3 and anyio>=4 #22

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Run pre-commit
if: ${{ matrix.python-version == '3.10' }}
uses: pre-commit/action@v3.0.0
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
- name: Downgrade trio
if: ${{ matrix.python-version == '3.7' }}
run: |
python -m pip install "trio==0.21"
- name: Run tests
run: python -m coverage run -m pytest
- name: Downgrade anyio
run: |
python -m pip install "anyio<4" "trio==0.21"
- name: Re-run tests
run: python -m coverage run -m pytest