added workflow running python tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Lint & Format (Python)
|
name: Python
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -32,3 +32,34 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
. .venv/bin/activate
|
. .venv/bin/activate
|
||||||
ruff check .
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user