File tree Expand file tree Collapse file tree 3 files changed +26
-15
lines changed
Expand file tree Collapse file tree 3 files changed +26
-15
lines changed Original file line number Diff line number Diff line change 11name : Lila integration test
22
33on :
4- - push
5- - pull_request
4+ push :
5+ branches : ["master"]
6+ paths :
7+ - " .github/workflows/integration_test.yml"
8+ - " integration/**"
9+ - " **.py"
10+ - " uv.lock"
11+ - " pyproject.toml"
12+ pull_request :
13+ paths :
14+ - " .github/workflows/integration_test.yml"
15+ - " integration/**"
16+ - " **.py"
17+ - " uv.lock"
18+ - " pyproject.toml"
619
720jobs :
821 lila :
@@ -16,18 +29,15 @@ jobs:
1629 image : ghcr.io/lichess-org/lila-docker:main
1730 options : --restart=always
1831 steps :
19- - name : Setup Python ${{ matrix.python-version }}
20- uses : actions/setup-python@v5
32+ - uses : actions/checkout@v4
33+ - name : Install uv
34+ uses : astral-sh/setup-uv@v6
2135 with :
2236 python-version : ${{ matrix.python-version }}
37+ - name : Install make and curl
38+ run : apt update && apt install -y make curl
2339 - name : Install dependencies
24- run : |
25- python -m pip install --upgrade pip
26- python -m pip install pytest
27- - name : Install curl
28- run : apt-get update && apt-get install -y curl
29- - name : Checkout berserk
30- uses : actions/checkout@v4
31- - name : Run tests
40+ run : make setup
41+ - name : Run integration tests
3242 run : |
3343 ./integration/run-tests.sh
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ integration_test() {
55 local BDIT_IMAGE=ghcr.io/lichess-org/lila-docker:main
66 local BDIT_LILA=bdit_lila
77 local BDIT_NETWORK=bdit_lila-network
8+ local BDIT_APP_IMAGE=ghcr.io/astral-sh/uv:debian
89 local BDIT_APP=bdit_app
910
1011 cleanup_containers () {
@@ -18,7 +19,7 @@ integration_test() {
1819
1920 docker network create $BDIT_NETWORK
2021 docker run --name $BDIT_LILA --network $BDIT_NETWORK -d $BDIT_IMAGE
21- docker run --name $BDIT_APP --network $BDIT_NETWORK -v " $( pwd) " :/app -w /app $BDIT_IMAGE ./integration/run-tests.sh
22+ docker run --name $BDIT_APP --network $BDIT_NETWORK -v " $( pwd) " :/app -w /app $BDIT_APP_IMAGE " ./integration/run-tests.sh"
2223
2324 cleanup_containers
2425 echo " ✅ Done"
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
3- python3 -m pip install -e . --no-cache-dir
3+ make setup # should this be moved outside of the file?
44
55attempts=0
66echo " 🔍 Checking if lila is ready..."
@@ -13,4 +13,4 @@ while [ $attempts -lt 30 ]; do
1313 attempts=$(( attempts + 1 ))
1414done
1515
16- pytest integration
16+ uv run pytest integration
You can’t perform that action at this time.
0 commit comments