From 4efc8894d1061fb7df808b19d0f782afda195ad5 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Mon, 2 Feb 2026 00:08:10 +0000 Subject: [PATCH] fix: resolve CI/CD issues - Poetry setup, type annotations, MyPy errors --- .gitea/workflows/ci.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3445e5b..c5f60f6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -17,24 +17,28 @@ jobs: with: 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 run: | - python -m pip install --upgrade pip - pip install -e ".[dev]" + poetry install --with dev - name: Run tests run: | - pytest tests/ -v + poetry run pytest tests/ -v - name: Run linting run: | - pip install ruff - ruff check . + poetry run ruff check . - name: Run type checking run: | - pip install mypy - mypy codechunk + poetry run mypy codechunk build: runs-on: ubuntu-latest @@ -47,14 +51,17 @@ jobs: with: python-version: '3.11' - - name: Install build dependencies - run: | - pip install build + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true - name: Build package run: | - python -m build + poetry build - name: Verify build run: | - pip install dist/*.whl --dry-run + poetry run pip install dist/*.whl --dry-run