mirror of
https://ghproxy.net/https://github.com/bohdanbobrowski/blog2epub.git
synced 2026-07-27 13:07:20 +08:00
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
44 lines
1 KiB
YAML
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
|