add new build doc workflow #7
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - migrate-to-gh-actions | |
| pull_request: | |
| branches: | |
| - migrate-to-gh-actions | |
| jobs: | |
| check-code-formatting: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: uv sync --extra dev_core | |
| - name: Check code formatting with ruff | |
| run: uv run ruff format --check . | |
| test-core: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --extra dev_core | |
| - name: List installed packages | |
| run: | | |
| uv pip list | |
| uv run python --version | |
| - name: Test core | |
| run: uv run pytest tests/test_core | |
| timeout-minutes: 20 |