mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-04-19 14:47:15 +00:00

* Add test suite for Supervisor tests * test_supervisor_is_updated should depend on test_update_supervisor Co-authored-by: Stefan Agner <stefan@agner.ch> --------- Co-authored-by: Stefan Agner <stefan@agner.ch>
17 lines
429 B
Bash
Executable File
17 lines
429 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
if [ -z "$GITHUB_ACTIONS" ] && [ -z "$VIRTUAL_ENV" ]; then
|
|
# Environment should be set up in separate GHA steps - which can also
|
|
# handle caching of the dependecies, etc.
|
|
python3 -m venv venv
|
|
# shellcheck disable=SC1091
|
|
source venv/bin/activate
|
|
pip3 install -r requirements.txt
|
|
fi
|
|
|
|
pytest --lg-env qemu-strategy.yaml --lg-log=lg_logs --junitxml=junit_reports/tests.xml "$@"
|