Fix defer_module_level not being respected within _DeferredFileLoader. #98
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- 'README.rst' | |
pull_request: | |
types: [ opened, synchronize ] | |
paths-ignore: | |
- 'README.rst' | |
workflow_dispatch: | |
jobs: | |
typing: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ] | |
name: pyright - ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Install project | |
run: | | |
python -m pip install -e . | |
- name: Run Pyright on ${{ matrix.python-version }} | |
uses: jakebailey/pyright-action@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
verify-types: defer_imports | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9', 'pypy-3.10' ] | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
name: tests - ${{ matrix.python-version }} - ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Install project and test dependencies | |
run: | | |
python -m pip install .[test] | |
- name: Run tests on ${{ matrix.python-version }} | |
run: | | |
python -m pytest tests |