mirror of
https://gh.wpcy.net/https://github.com/bohdanbobrowski/blog2epub.git
synced 2026-04-25 02:22:29 +08:00
26 lines
589 B
YAML
26 lines
589 B
YAML
name: Code check
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install '.[dev]'
|
|
- name: Run Ruff linter and code formatter
|
|
run: |
|
|
ruff format . --check
|
|
ruff check .
|
|
- name: Static code analysis with mypy
|
|
run: |
|
|
mypy .
|