Skip to content

Merge pull request #27 from YDX-2147483647/main #7

Merge pull request #27 from YDX-2147483647/main

Merge pull request #27 from YDX-2147483647/main #7

Workflow file for this run

name: CI
on:
push: { branches: [main] }
pull_request: { branches: [main] }
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up caches
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-py${{ matrix.python-version }}
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 3
- name: Fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -e ".[dev]"
- name: Format (black)
run: |
pdm run black
- name: Lint (ruff)
run: |
pdm run ruff
- name: Type check (mypy)
run: |
pdm run mypy
- name: Run tests
run: |
pdm run test
- name: Build docs
run: |
pdm run docs