2 Commits
Author SHA1 Message Date
AramJonghu 094fc568f1 chore: added missing dependency to pyproject
C++ / fmt (pull_request) Successful in 4s
JS/TS / fmt (pull_request) Successful in 16s
Python / verify (pull_request) Failing after 12s
JS/TS / lint (pull_request) Successful in 17s
Python / static (pull_request) Failing after 36s
Rust / fmt (pull_request) Successful in 1m19s
C++ / build (pull_request) Successful in 2m18s
Rust / build (pull_request) Successful in 2m3s
Rust / clippy (pull_request) Successful in 2m1s
C++ / clang-tidy (pull_request) Successful in 3m43s
2026-08-15 21:37:49 +02:00
AramJonghu 29dcac653f ci(python): rework of jobs + fix import issue 2026-08-15 21:37:06 +02:00
2 changed files with 21 additions and 78 deletions
+18 -74
View File
@@ -1,10 +1,13 @@
name: Python
env:
APK_DEPS: py3-pillow py3-gi py3-cairo py3-dbus py3-udev py3-psutil py3-evdev py3-yaml py3-xlib py3-typing-extensions gtk+3.0
on:
pull_request:
jobs:
fmt:
static:
runs-on: alpine
container: node:26-alpine
@@ -27,30 +30,13 @@ jobs:
. .venv/bin/activate
ruff format --check .
lint:
runs-on: alpine
container: node:26-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: |
apk add --no-cache \
git \
python3 \
py3-pip
python3 -m venv .venv
. .venv/bin/activate
pip install --no-cache-dir ruff
- name: Lint
run: |
. .venv/bin/activate
ruff check .
test:
verify:
if: always()
runs-on: alpine
container: node:26-alpine
@@ -64,16 +50,19 @@ jobs:
git \
python3 \
py3-pip \
py3-pillow \
build-base
python3 -m venv .venv
$APK_DEPS \
build-base \
python3-dev \
gcc \
g++
python3 -m venv --system-site-packages .venv
. .venv/bin/activate
pip install --no-cache-dir \
typer \
pillow \
materialyoucolor \
jinja2 \
pytest
pip install --no-cache-dir basedpyright nuitka .
- name: Type check
run: |
. .venv/bin/activate
basedpyright
- name: Test
run: |
@@ -81,51 +70,6 @@ jobs:
cd cli
python -m pytest tests/ -v
typecheck:
runs-on: alpine
container: node:26-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: |
apk add --no-cache \
git \
python3 \
py3-pip
python3 -m venv .venv
. .venv/bin/activate
pip install --no-cache-dir basedpyright typer pillow materialyoucolor jinja2
- name: Type check
run: |
. .venv/bin/activate
basedpyright
buildcheck:
runs-on: alpine
container: node:26-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: |
apk add --no-cache \
git \
python3 \
py3-pip \
build-base \
python3-dev \
gcc \
g++
python3 -m venv .venv
. .venv/bin/activate
pip install --no-cache-dir nuitka
- name: Nuitka module check
run: |
. .venv/bin/activate
+3 -4
View File
@@ -10,12 +10,11 @@ dependencies = [
"typer",
"pillow",
"jinja2",
"materialyoucolor"
"materialyoucolor",
"solaar",
"pytest"
]
[project.optional-dependencies]
dev = ["pytest"]
[project.scripts]
zshell-cli = "zshell:main"