forked from standardebooks/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 887 Bytes
/
se-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Standard Ebooks toolset tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Ubuntu packages
run: |
sudo apt update
sudo apt install calibre default-jre git python3-venv
- name: Install pipx packages
run: |
pipx install .
pipx inject standardebooks pytest==8.2.2 pylint==3.2.2 mypy==1.10.0 types-requests==2.32.0.20240602 types-setuptools==70.0.0.20240524 types-Pillow==10.2.0.20240520
- name: Check type annotations with mypy
run: $PIPX_HOME/venvs/standardebooks/bin/mypy
- name: Check code with pylint
run: $PIPX_HOME/venvs/standardebooks/bin/pylint tests/*.py se
- name: Test with pytest
run: $PIPX_HOME/venvs/standardebooks/bin/pytest