Skip to content

Add a method to convert annotations to slots using metaclasses #70

Add a method to convert annotations to slots using metaclasses

Add a method to convert annotations to slots using metaclasses #70

Workflow file for this run

name: UnitTests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test-prefab:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.13-dev", "3.12", "3.11", "3.10", "pypy-3.10", "3.9", "3.8"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[testing]
- name: Test with pytest
run: |
pytest tests/ --cov=src/ --cov-report=term-missing
test-stubs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[testing]
- name: Check type stub files
run: |
python -m mypy.stubtest ducktools.classbuilder