Fix Aurask release workflow build paths
All checks were successful
aurask-release / build-and-deploy (push) Successful in 1m55s

This commit is contained in:
Aaron 2026-04-19 17:15:20 +08:00
parent 0e344eb74a
commit d7a836a041
2 changed files with 6 additions and 5 deletions

View File

@ -6,10 +6,11 @@ on:
- master
paths:
- .gitea/workflows/aurask-release.yml
- api/**
- deploy/images/aurask-api/**
- deploy/images/aurask-web/**
- deploy/k3s/base/**
- src/aurask/**
- deploy/k3s/README.md
- tests/**
- pyproject.toml
- README.md
@ -41,7 +42,7 @@ jobs:
- name: Run unit tests
env:
PYTHONPATH: src
PYTHONPATH: api
run: |
python3 -m unittest discover -s tests -v

View File

@ -2,16 +2,16 @@ FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONPATH=/app/src
PYTHONPATH=/app/api
WORKDIR /app
RUN useradd --system --create-home --uid 10001 aurask
COPY pyproject.toml README.md /app/
COPY src /app/src
COPY api /app/api
RUN python -m compileall /app/src && \
RUN python -m compileall /app/api && \
install -d -o aurask -g aurask /data
USER aurask