Build(deps): bump postcss from 8.5.4 to 8.5.25 in /docs #339
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: Run pytest | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths-ignore: | |
| - "**.md" | |
| jobs: | |
| test: | |
| strategy: | |
| max-parallel: 6 | |
| matrix: | |
| python-version: ["3.12"] | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| # --------------------------------------------- | |
| # Checkout | |
| # --------------------------------------------- | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| # --------------------------------------------- | |
| # Install uv + Python | |
| # --------------------------------------------- | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install Python | |
| run: | | |
| uv python install ${{ matrix.python-version }} | |
| uv python pin ${{ matrix.python-version }} | |
| # --------------------------------------------- | |
| # Sync dependencies (pyproject.toml) | |
| # --------------------------------------------- | |
| - name: Install dependencies | |
| run: uv sync --dev | |
| # --------------------------------------------- | |
| # Run test suite | |
| # --------------------------------------------- | |
| - name: Run tests with pytest | |
| run: | | |
| cd tests/client | |
| uv run neet version | |
| uv run neet init | |
| cd ../.. | |
| mkdir -p logs | |
| LOGS_DIR="$(pwd)/logs" | |
| uv run neet serve > "$LOGS_DIR/server.log" 2>&1 & | |
| uv run pytest --cov=./ --cov-report=xml | |
| # --------------------------------------------- | |
| # Upload coverage | |
| # --------------------------------------------- | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| # --------------------------------------------- | |
| # Always show server log | |
| # --------------------------------------------- | |
| - name: Server log | |
| if: always() | |
| run: | | |
| echo "==== server.log ====" | |
| cat logs/server.log || true |