fixed ci for lint and test
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m48s
Run linting on the backend code / Build (pull_request) Failing after 41s
Run testing on the backend code / Build (pull_request) Failing after 25s
Build and deploy the backend to staging / Deploy to staging (pull_request) Failing after 1m0s
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m48s
Run linting on the backend code / Build (pull_request) Failing after 41s
Run testing on the backend code / Build (pull_request) Failing after 25s
Build and deploy the backend to staging / Deploy to staging (pull_request) Failing after 1m0s
This commit is contained in:
@@ -15,17 +15,15 @@ jobs:
|
|||||||
|
|
||||||
- uses: https://gitea.com/actions/checkout@v4
|
- uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install uv
|
||||||
run: |
|
uses: astral-sh/setup-uv@v6
|
||||||
apt-get update && apt-get install -y python3 python3-pip
|
with:
|
||||||
pip install pipenv
|
version: "0.9.11"
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install dependencies
|
||||||
run: |
|
|
||||||
ls -la
|
|
||||||
# only install dev-packages
|
|
||||||
pipenv install --categories=dev-packages
|
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
|
run: |
|
||||||
|
uv sync --frozen --no-cache --no-dev
|
||||||
|
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: pipenv run pylint src --fail-under=9
|
run: pipenv run pylint src --fail-under=9
|
||||||
|
|||||||
@@ -15,17 +15,15 @@ jobs:
|
|||||||
|
|
||||||
- uses: https://gitea.com/actions/checkout@v4
|
- uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install uv
|
||||||
run: |
|
uses: astral-sh/setup-uv@v6
|
||||||
apt-get update && apt-get install -y python3 python3-pip
|
with:
|
||||||
pip install uv
|
version: "0.9.11"
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install dependencies
|
||||||
run: |
|
|
||||||
ls -la
|
|
||||||
# install all packages, including dev-packages
|
|
||||||
uv sync
|
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
|
run: |
|
||||||
|
uv sync --frozen --no-cache --no-dev
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: uv run pytest src --html=report.html --self-contained-html --log-cli-level=DEBUG
|
run: uv run pytest src --html=report.html --self-contained-html --log-cli-level=DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user