-
-
Notifications
You must be signed in to change notification settings - Fork 476
69 lines (58 loc) · 1.66 KB
/
Copy pathlint-py.yml
File metadata and controls
69 lines (58 loc) · 1.66 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Lint & Test (Python)
on:
push:
branches:
- master
- dev
paths:
- "lncrawl/**"
- "sources/**/*.py"
- "requirements.txt"
- "pyproject.toml"
- "setup.py"
- ".flake8"
- ".github/workflows/lint-py.yml"
pull_request:
branches:
- dev
paths:
- "lncrawl/**"
- "sources/**/*.py"
- "requirements.txt"
- "pyproject.toml"
- "setup.py"
- ".flake8"
- ".github/workflows/lint-py.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lncrawl:
if: github.repository == 'dipu-bd/lightnovel-crawler'
runs-on: ubuntu-latest
name: Python ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: 📦 Install Dependencies
run: uv pip install --system -r requirements.txt
- name: 🧹 Lint with flake8
run: flake8 -v --count --show-source --statistics
- name: 🏗️ Build Wheel Package
run: python -m build --wheel --no-isolation
- name: 🧪 Install lncrawl
run: pip install dist/lightnovel_crawler*.whl
- name: 🧪 Run lncrawl
run: lncrawl -ll sources list