Skip to content

πŸ“ Add Version and Python badges to README.md #10

πŸ“ Add Version and Python badges to README.md

πŸ“ Add Version and Python badges to README.md #10

Workflow file for this run

name: CI
on:
- push
- pull_request
env:
FORCE_COLOR: 1
jobs:
test:
name: 'πŸ§ͺ Test: Python ${{ matrix.python }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python:
- '3.12'
- '3.11'
- '3.10'
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pdm install -G test --frozen-lockfile
- name: Run pytest
run: pdm run pytest -v
- name: Write coverage.xml
run: pdm run coverage xml
- name: Upload coverage data to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
lint:
name: 🧐 Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: '3.12'
- name: Install dependencies
run: pdm install -G lint --frozen-lockfile
- name: Lint with ruff
run: |
pdm run ruff check .
pdm run ruff format --check .
- name: Type check with mypy
run: pdm run mypy