refactor(ci): restructure workflows to multi-job per language
JS/TS / fmt (pull_request) Successful in 15s
JS/TS / lint (pull_request) Successful in 17s
Python / lint-format (pull_request) Failing after 28s
C++ / build (pull_request) Successful in 1m37s
Python / test (pull_request) Successful in 44s
C++ / clang-tidy (pull_request) Successful in 3m15s
Rust / build (pull_request) Successful in 1m22s
Python / buildcheck (pull_request) Successful in 1m51s
Rust / fmt (pull_request) Successful in 1m0s
Rust / clippy (pull_request) Successful in 1m24s
JS/TS / fmt (pull_request) Successful in 15s
JS/TS / lint (pull_request) Successful in 17s
Python / lint-format (pull_request) Failing after 28s
C++ / build (pull_request) Successful in 1m37s
Python / test (pull_request) Successful in 44s
C++ / clang-tidy (pull_request) Successful in 3m15s
Rust / build (pull_request) Successful in 1m22s
Python / buildcheck (pull_request) Successful in 1m51s
Rust / fmt (pull_request) Successful in 1m0s
Rust / clippy (pull_request) Successful in 1m24s
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
name: Python
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
lint-format:
|
||||
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 autopep8
|
||||
|
||||
- name: Format check
|
||||
run: |
|
||||
. .venv/bin/activate
|
||||
autopep8 --diff --exit-code -r .
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
. .venv/bin/activate
|
||||
ruff check .
|
||||
|
||||
test:
|
||||
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 \
|
||||
py3-pillow \
|
||||
build-base
|
||||
python3 -m venv .venv
|
||||
. .venv/bin/activate
|
||||
pip install --no-cache-dir \
|
||||
typer \
|
||||
pillow \
|
||||
materialyoucolor \
|
||||
jinja2 \
|
||||
pytest
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
. .venv/bin/activate
|
||||
cd cli
|
||||
python -m pytest tests/ -v
|
||||
|
||||
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
|
||||
nuitka --module cli/src/zshell/__main__.py
|
||||
Reference in New Issue
Block a user