Skip to content

Commit 488d3b2

Browse files
authored
Fix unittest workflow (#20)
1 parent ff53356 commit 488d3b2

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

.github/workflows/docker/docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
services:
22
trinity-node-1:
33
image: trinity-rft:latest-unittest
4-
user: "${UID}:${GID}"
54
pull_policy: never
65
command: sh -c "pip install -e .[dev] && ray start --head --dashboard-host 0.0.0.0 --include-dashboard true --block"
76
environment:
@@ -27,7 +26,6 @@ services:
2726

2827
trinity-node-2:
2928
image: trinity-rft:latest-unittest
30-
user: "${UID}:${GID}"
3129
pull_policy: never
3230
command: sh -c "pip install -e .[dev] && ray start --address=trinity-node-1:6379 --block"
3331
environment:

.github/workflows/unittest.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,18 @@ jobs:
2424
- name: Setup docker compose
2525
working-directory: trinity-${{ github.run_id }}/.github/workflows/docker
2626
run: |
27-
export UID
28-
export GID=$(id -g)
2927
docker compose up -d
3028
sleep 15s
3129
3230
- name: Check ray status
3331
working-directory: trinity-${{ github.run_id }}/.github/workflows/docker
3432
run: |
35-
export UID
36-
export GID=$(id -g)
3733
docker compose exec trinity-node-1 ray status
3834
docker compose exec trinity-node-2 ray status
3935
4036
- name: Run unittest
4137
working-directory: trinity-${{ github.run_id }}/.github/workflows/docker
4238
run: |
43-
export UID
44-
export GID=$(id -g)
4539
docker compose exec trinity-node-1 pytest tests --ignore=tests/data --ctrf report.json
4640
continue-on-error: true
4741

@@ -64,8 +58,6 @@ jobs:
6458
working-directory: trinity-${{ github.run_id }}/.github/workflows/docker
6559
if: always()
6660
run: |
67-
export UID
68-
export GID=$(id -g)
6961
docker compose down --remove-orphans
7062
7163
- name: Cleanup workspace

0 commit comments

Comments
 (0)