File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,30 @@ jobs:
1414 runs-on : ubuntu-latest
1515 env :
1616 DOCKER_PLATFORM : linux/amd64
17+ DOCKER_USER_HOME : /home/developer
18+ JUPYTER_TOKEN : ci
19+ OPENAI_API_KEY : " "
20+ GEMINI_API_KEY : " "
1721 steps :
1822 - name : Checkout
1923 uses : actions/checkout@v5
2024
25+ - name : Export runner UID/GID for Docker build args
26+ run : |
27+ echo "DOCKER_HOST_UID=$(id -u)" >> "$GITHUB_ENV"
28+ echo "DOCKER_HOST_GID=$(id -g)" >> "$GITHUB_ENV"
29+
2130 - name : Set up Buildx
2231 uses : docker/setup-buildx-action@v3
2332
2433 - name : Build dev and app images
2534 run : docker compose build dev app
2635
2736 - name : Ruff lint
28- run : docker compose run --rm dev ruff check .
37+ run : docker compose run --rm -e RUFF_CACHE_DIR=/tmp/ruff-cache dev ruff check .
2938
3039 - name : Ruff format check
31- run : docker compose run --rm dev ruff format --check .
40+ run : docker compose run --rm -e RUFF_CACHE_DIR=/tmp/ruff-cache dev ruff format --check .
3241
3342 - name : Run tests
34- run : docker compose run --rm dev pytest -q
43+ run : docker compose run --rm -e PYTHONDONTWRITEBYTECODE=1 -e PYTEST_ADDOPTS=--cache-dir=/tmp/pytest-cache dev pytest -q
You can’t perform that action at this time.
0 commit comments