diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a47f1e6..b151d7e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -66,3 +66,48 @@ jobs: run: | uv pip install coveralls uv run coveralls --service=github + + + docs: + runs-on: ubuntu-latest + needs: [ tests_matrix ] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: 'pip' + cache-dependency-path: docs/requirements.txt + - name: Build documentation + run: | + uv sync --all-extras --all-groups --upgrade + uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs docs/_build/html + + build: + runs-on: ubuntu-latest + needs: [ tests_matrix ] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: 'pip' + cache-dependency-path: requirements-dev.txt + - name: Build package + run: | + uv sync --all-extras --all-groups --upgrade + uv build + + tests: + if: always() + runs-on: ubuntu-latest + needs: [ tests_matrix, ruff, docs, build ] + steps: + - name: Check tests matrix status + if: needs.tests_matrix.result != 'success' + run: exit 1 + - name: Finish parallel build + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true + github-token: ${{ secrets.GITHUB_TOKEN }}