3030 path : docker_images
3131 retention-days : 1 # automatically expires after 1 day
3232
33+
34+ # -------------------------------------------------
35+ # SMOKE TESTS (BLOCKING)
36+ # -------------------------------------------------
3337 geonode_test_suite_smoke :
34- name : Test tests location
38+ name : Smoke Tests
3539 needs : build_images
3640 runs-on : ubuntu-24.04
3741
5357 run : docker compose --env-file .env_test -f docker-compose-test.yml up -d
5458 working-directory : ${{ github.workspace }}
5559
56- - name : Wait for services to become healthy
57- run : |
58- n=1
59- m=10
60- until [ $n -gt $m ]
61- do
62- sleep 60
63- DJANGO_STATUS=$(docker inspect --format='{{.State.Health.Status}}' django4geonode)
64- GEOSERVER_STATUS=$(docker inspect --format='{{.State.Health.Status}}' geoserver4geonode)
65- echo "⏳ Waited $n min (of $m)"
66- if [[ $DJANGO_STATUS == healthy && $GEOSERVER_STATUS == healthy ]]; then
67- break
68- fi
69- docker ps
70- n=$((n+1))
71- done
72- [[ $DJANGO_STATUS == healthy && $GEOSERVER_STATUS == healthy ]]
73- working-directory : ${{ github.workspace }}
74-
75- - name : Run smoke tests
76- run : |
77- docker compose --env-file .env_test -f docker-compose-test.yml exec django bash -lc \
78- "pwd && ls -all /usr/src/geonode"
79- working-directory : ${{ github.workspace }}
80- #
81- # - name: Stop stack (always)
82- # if: always()
83- # run: docker compose --env-file .env_test -f docker-compose-test.yml down -v
84- # working-directory: ${{ github.workspace }}
85-
86- # # -------------------------------------------------
87- # # SMOKE TESTS (BLOCKING)
88- # # -------------------------------------------------
89- # geonode_test_suite_smoke:
90- # name: Smoke Tests
91- # needs: build_images
92- # runs-on: ubuntu-24.04
93- #
94- # steps:
95- # - name: Checkout repository
96- # uses: actions/checkout@v4
97- #
98- # - name: Download built Docker images
99- # uses: actions/download-artifact@v4
100- # with:
101- # name: docker-images
102- # path: docker_images
103- #
104- # - name: Load Docker images
105- # run: |
106- # docker load -i docker_images/django.tar
107- # docker load -i docker_images/geoserver.tar
108- # docker load -i docker_images/db.tar || true
109- # docker load -i docker_images/celery.tar || true
110- #
111- # - name: Start the stack
112- # run: docker compose --env-file .env_test -f docker-compose-test.yml up -d
113- # working-directory: ${{ github.workspace }}
114- #
11560# - name: Wait for services to become healthy
11661# run: |
11762# n=1
@@ -130,19 +75,19 @@ jobs:
13075# done
13176# [[ $DJANGO_STATUS == healthy && $GEOSERVER_STATUS == healthy ]]
13277# working-directory: ${{ github.workspace }}
133- #
134- # - name: Run smoke tests
135- # run: |
136- # docker compose --env-file .env_test -f docker-compose-test.yml exec django bash -lc \
137- # "cd /usr/src/geonode && bash tests/test.sh geonode.tests.smoke geonode.tests.test_rest_api geonode.tests.test_search geonode.tests.test_utils geonode.tests.test_headers"
138- # working-directory: ${{ github.workspace }}
139- #
140- # - name: Stop stack (always)
141- # if: always()
142- # run: docker compose --env-file .env_test -f docker-compose-test.yml down -v
143- # working-directory: ${{ github.workspace }}
144- #
145- #
78+
79+ - name : Run smoke tests
80+ run : |
81+ docker compose --env-file .env_test -f docker-compose-test.yml exec django bash -lc \
82+ "./ tests/test.sh geonode.tests.smoke geonode.tests.test_rest_api geonode.tests.test_search geonode.tests.test_utils geonode.tests.test_headers"
83+ working-directory : ${{ github.workspace }}
84+
85+ - name : Stop stack (always)
86+ if : always()
87+ run : docker compose --env-file .env_test -f docker-compose-test.yml down -v
88+ working-directory : ${{ github.workspace }}
89+
90+
14691# # -------------------------------------------------
14792# # OTHER TEST SUITES (DEPEND ON SMOKE)
14893# # -------------------------------------------------
0 commit comments