Skip to content

Commit

Permalink
Merge branch 'ci/pythonpath_fix' into 'master'
Browse files Browse the repository at this point in the history
ci: move pythonpath setting after IDF export script

See merge request espressif/esp-idf-monitor!73
  • Loading branch information
peterdragun committed Sep 16, 2024
2 parents cb1f73c + c032cdc commit 761f400
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,11 @@ workflow:
when: always
expire_in: 1 week
variables:
PYTHONPATH: "$PYTHONPATH:${TEST_DIR}"
COVERAGE_PROCESS_START: "${CI_PROJECT_DIR}/pyproject.toml"
IDF_TARGET: "esp32"
script:
# setting PYTHONPATH before running activate script on newest IDF will cause an error because of missing coverage
- PYTHONPATH="$PYTHONPATH:${TEST_DIR}"
- cd ${TEST_DIR}/test_apps
- pytest --junit-xml=${TEST_DIR}/results_${IDF_TARGET}_${IDF_BRANCH}.xml --target=${IDF_TARGET}

Expand Down Expand Up @@ -206,9 +207,10 @@ host_test:
- ".coverage*"
expire_in: 1 week
variables:
PYTHONPATH: "$PYTHONPATH:${TEST_DIR}"
COVERAGE_PROCESS_START: "${CI_PROJECT_DIR}/pyproject.toml"
script:
# setting PYTHONPATH before running activate script on newest IDF will cause an error because of missing coverage
- PYTHONPATH="$PYTHONPATH:${TEST_DIR}"
- cd ${TEST_DIR}
- coverage run -m pytest -sv host_test/test_monitor.py

Expand Down

0 comments on commit 761f400

Please sign in to comment.