Skip to content

Commit d115848

Browse files
authored
time-series-analytics: Fix for functional tests workflow (open-edge-platform#1740)
This PR fixes the functional tests workflow for the time-series-analytics project by updating the test execution process to properly prepare the Docker environment before running the full test suite. Changes: - Modified the pytest execution sequence to run a specific test first, load environment variables, import Docker images into k3s, and then execute the full test suite - Changed test pattern variable reference from quoted to unquoted Signed-off-by: Pooja Kumbharkar <pooja.kumbharkar@intel.com>
1 parent 1ef102b commit d115848

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/timeseries-weekly-functional-tests.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ jobs:
4141
echo "Running function tests"
4242
pip3 install -r requirements.txt
4343
rm -rf /tmp/test_report/report.html
44-
pytest -q -vv --self-contained-html --html=/tmp/test_report/report.html "${TEST_PATTERN}"
44+
pytest -v test_docker.py::test_input_endpoint
45+
source ../docker/.env
46+
docker save ${DOCKER_REGISTRY}${TIME_SERIES_ANALYTICS_IMAGE}:${IMAGE_SUFFIX:-latest}${WEEKLY_BUILD_DATE:+-${WEEKLY_BUILD_DATE}}${WEEKLY_BUILD_DATE:+-weekly} | sudo k3s ctr images import -
47+
pytest -q -vv --self-contained-html --html=/tmp/test_report/report.html ${TEST_PATTERN}
4548
- name: Upload HTML test report to Github
4649
uses: actions/upload-artifact@v4
4750
with:

0 commit comments

Comments
 (0)