diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4ddb4e4..aa4f823 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + cache: 'pip' - name: Install dependencies run: | @@ -23,9 +24,36 @@ jobs: pip install pytest - name: Run tests + run: pytest tests/ -v --tb=short + + - name: Run type checks run: | - if [ -d "tests" ]; then - pytest tests/ -v --tb=short - else - echo "No tests directory found - skipping" - fi + pip install mypy + mypy env_pro/ --ignore-missing-imports || true + + - name: Check code formatting + run: | + pip install black + black --check env_pro/ || true + + build: + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install build dependencies + run: pip install build + + - name: Build package + run: python -m build + + - name: Verify package + run: | + pip install dist/*.whl + env-pro --help