File tree 3 files changed +14
-15
lines changed
3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ jobs:
128
128
run : |
129
129
docker load --input /tmp/${{ env.KBC_DEVELOPERPORTAL_APP }}.tar
130
130
docker image ls -a
131
- docker run ${{ env.KBC_DEVELOPERPORTAL_APP }}:latest uv run flake8 . --config=flake8.cfg
131
+ docker run ${{ env.KBC_DEVELOPERPORTAL_APP }}:latest uv run --active flake8 . --config=flake8.cfg
132
132
echo "Running unit-tests..."
133
- docker run ${{ env.KBC_DEVELOPERPORTAL_APP }}:latest uv run python -m unittest discover
133
+ docker run ${{ env.KBC_DEVELOPERPORTAL_APP }}:latest uv run --active python -m unittest discover
134
134
135
135
tests-kbc :
136
136
name : Run KBC Tests
Original file line number Diff line number Diff line change @@ -5,17 +5,16 @@ FROM quay.io/keboola/docker-custom-python:latest
5
5
6
6
RUN pip install uv
7
7
8
- # COPY requirements.txt /code/requirements.txt
9
- # COPY requirements-tests.txt /code/requirements-tests.txt
10
- COPY pyproject.toml /code/pyproject.toml
11
-
12
8
WORKDIR /code/
13
- RUN uv sync
14
9
15
- COPY /src /code/src/
16
- COPY /tests /code/tests/
17
- COPY /scripts /code/scripts/
18
- COPY flake8.cfg /code/flake8.cfg
19
- COPY deploy.sh /code/deploy.sh
10
+ COPY pyproject.toml .
11
+
12
+ RUN uv pip sync --system pyproject.toml
13
+
14
+ COPY src/ src/
15
+ COPY tests/ tests/
16
+ COPY scripts/ scripts/
17
+ COPY flake8.cfg .
18
+ COPY deploy.sh .
20
19
21
- CMD uv run /code/src/component.py
20
+ CMD uv run --active /code/src/component.py
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
set -e
3
3
4
- uv run flake8 --config=flake8.cfg
5
- uv run python -m unittest discover
4
+ uv run --active flake8 --config=flake8.cfg
5
+ uv run --active python -m unittest discover
You can’t perform that action at this time.
0 commit comments