Skip to content

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

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

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

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: 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/