blog2epub/.github/workflows/code_check_and_unit_tests.yml
Bohdan Bobrowski 97ab6fe307
Some checks failed
Code check and unit tests / code_check (3.12) (push) Failing after 2s
Linux build / linux-build (push) Failing after 1s
Code check and unit tests / unit_tests (3.12) (push) Has been skipped
Windows build / windows-build (push) Has been cancelled
MacOS build / macos-build (push) Has been cancelled
AppImage
2025-11-27 21:04:58 +01:00

44 lines
1 KiB
YAML

name: Code check and unit tests
on: [push]
jobs:
code_check:
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 .
unit_tests:
needs: code_check
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: Unit tests
run: |
pytest ./tests/unit