Skip to content

New pipeline, reformat the code, fix the docs and samples, ... #8

New pipeline, reformat the code, fix the docs and samples, ...

New pipeline, reformat the code, fix the docs and samples, ... #8

Workflow file for this run

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: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
- name: Test with python ${{ matrix.python-version }}
run: ls -la
- name: Test with python ${{ matrix.python-version }}
run: uv run --group dev --with pygments ./test.sh
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-report-python-${{ matrix.python-version }}
path: test_reports/coverage/