New pipeline, reformat the code, fix the docs and samples, ... #15
Workflow file for this run
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: Test on Pull Request | |
| on: | |
| pull_request: | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Run ruff format check | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: 'format --check --diff' | |
| - name: Run ruff lint check | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: 'check --show-fixes' | |
| test: | |
| needs: [verify] | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Make test script executable | |
| run: chmod +x ./test.sh | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Test with python ${{ matrix.python-version }} | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[test]" | |
| pip install pygments | |
| ./test.sh | |
| - name: Upload coverage reports | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report-python-${{ matrix.python-version }} | |
| path: test_reports/coverage/ |