Testing it locally, the same issue will arise due to the test image used for BATS runs with Python 3.9.
So either this testing possibility should be removed, or the image should either be updated to use a newer alpine version or be completely rewritten - something that should not be too hard. One could, e.g., base it on the BATS GitHub action composite action that expects a Linux environment and then goes to town.
Copilot summary
This pull request includes several changes to the CI workflow, Docker setup, and test configurations. The main focus is on improving the setup and execution of BATS tests and ensuring compatibility with the CI environment.
CI Workflow Improvements:
.github/workflows/ci_tests.yml: Removed Docker setup steps and added steps to install Python 3.10, setup BATS, and install necessary dependencies.
Dockerfile Adjustments:
Dockerfile: Changed the location of the docker_host_ip file to /tmp/docker_host_ip.
tests/Dockerfile: Updated the location for storing docker_host_ip to /tmp/docker_host_ip.
Entrypoint Script Changes:
entrypoint.sh: Updated the virtual environment setup to use /tmp/venvs instead of /venvs and modified the retrieval of docker_host_ip to use /tmp/docker_host_ip. [1][2][3]
Test Configuration Updates:
tests/setup_suite.bash and tests/test_fixtures.bash: Added conditional logic to set DOCKER_BATS_WORKDIR based on the CI environment and updated BATS library loading. [1][2]
Fixes #164 by using the BATS GitHub Actions to run BATS in the CI.
Testing it locally, the same issue will arise due to the test image used for BATS runs with Python 3.9. So either this testing possibility should be removed, or the image should either be updated to use a newer alpine version or be completely rewritten - something that should not be too hard. One could, e.g., base it on the BATS GitHub action composite action that expects a Linux environment and then goes to town.
Copilot summary
This pull request includes several changes to the CI workflow, Docker setup, and test configurations. The main focus is on improving the setup and execution of BATS tests and ensuring compatibility with the CI environment.
CI Workflow Improvements:
.github/workflows/ci_tests.yml
: Removed Docker setup steps and added steps to install Python 3.10, setup BATS, and install necessary dependencies.Dockerfile Adjustments:
Dockerfile
: Changed the location of thedocker_host_ip
file to/tmp/docker_host_ip
.tests/Dockerfile
: Updated the location for storingdocker_host_ip
to/tmp/docker_host_ip
.Entrypoint Script Changes:
entrypoint.sh
: Updated the virtual environment setup to use/tmp/venvs
instead of/venvs
and modified the retrieval ofdocker_host_ip
to use/tmp/docker_host_ip
. [1] [2] [3]Test Configuration Updates:
tests/setup_suite.bash
andtests/test_fixtures.bash
: Added conditional logic to setDOCKER_BATS_WORKDIR
based on the CI environment and updated BATS library loading. [1] [2]