Skip to content

πŸ‘·πŸΌ Prettify CI job names #2

πŸ‘·πŸΌ Prettify CI job names

πŸ‘·πŸΌ Prettify CI job names #2

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