CI: optimise (use container with all deps for the runner)
Some checks failed
/ build (push) Failing after 14s
Some checks failed
/ build (push) Failing after 14s
This commit is contained in:
parent
50a2a2ec8f
commit
32e499e2cc
2 changed files with 12 additions and 2 deletions
|
@ -27,8 +27,8 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
#- name: Install dependencies
|
- name: Install app with 'uv pip install'
|
||||||
# run: uv sync
|
run: uv pip install --python=$UV_PROJECT_ENVIRONMENT --no-deps /src
|
||||||
|
|
||||||
- name: Run basic test (API call)
|
- name: Run basic test (API call)
|
||||||
run: pytest -s tests/basic.py
|
run: pytest -s tests/basic.py
|
||||||
|
|
10
Containerfile.ci
Normal file
10
Containerfile.ci
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Build: podman build -t treetrail-backend-ci -f Containerfile.ci
|
||||||
|
|
||||||
|
FROM tiptop:5000/python-ci
|
||||||
|
|
||||||
|
COPY ./pyproject.toml ./README.md ./uv.lock /_lock/
|
||||||
|
|
||||||
|
RUN --mount=type=cache,target=/root/.cache <<EOT
|
||||||
|
cd /_lock
|
||||||
|
uv sync --locked --no-dev --no-install-project
|
||||||
|
EOT
|
Loading…
Add table
Add a link
Reference in a new issue