fix: resolve CI/CD issues - Poetry setup, type annotations, MyPy errors
Some checks failed
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled

This commit is contained in:
2026-02-02 00:08:10 +00:00
parent 59f45ffefc
commit 4efc8894d1

View File

@@ -17,24 +17,28 @@ jobs:
with: with:
python-version: '3.11' python-version: '3.11'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip poetry install --with dev
pip install -e ".[dev]"
- name: Run tests - name: Run tests
run: | run: |
pytest tests/ -v poetry run pytest tests/ -v
- name: Run linting - name: Run linting
run: | run: |
pip install ruff poetry run ruff check .
ruff check .
- name: Run type checking - name: Run type checking
run: | run: |
pip install mypy poetry run mypy codechunk
mypy codechunk
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -47,14 +51,17 @@ jobs:
with: with:
python-version: '3.11' python-version: '3.11'
- name: Install build dependencies - name: Install Poetry
run: | uses: snok/install-poetry@v1
pip install build with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Build package - name: Build package
run: | run: |
python -m build poetry build
- name: Verify build - name: Verify build
run: | run: |
pip install dist/*.whl --dry-run poetry run pip install dist/*.whl --dry-run