Merge pull request #64 from jrepp/codex/config-path-containment #227
This file contains hidden or 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 ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| uv sync --all-extras | |
| - name: Run tests with coverage | |
| run: | | |
| uv run pytest --cov=docuchango --cov-report=xml --cov-report=term --cov-report=html | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v6.0.1 | |
| if: matrix.python-version == '3.14' | |
| with: | |
| files: ./coverage.xml | |
| flags: unittests | |
| name: codecov-umbrella | |
| fail_ci_if_error: false | |
| verbose: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Set up Python | |
| run: uv python install 3.14 | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Run ruff format check | |
| run: uv run ruff format --check . | |
| - name: Run ruff lint | |
| run: uv run ruff check . --output-format=github | |
| - name: Run mypy | |
| run: uv run mypy docuchango tests | |
| actionlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Run actionlint | |
| uses: reviewdog/action-actionlint@v1.72.0 | |
| with: | |
| actionlint_flags: -color | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Set up Python | |
| run: uv python install 3.14 | |
| - name: Build package | |
| run: uv build | |
| - name: Check package | |
| run: uv tool run twine check dist/* |