You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use hatch for running project tests using Gitlab actions and are running into an issue with test environments not being generated. In detail, when running a test matrix including Python versions not available in the system, the tests fail to install the correct versions and instead raise an OSError. Here's a minimal Dockerfile example demonstrating the issue
FROM python:3-alpine
RUN apk add build-base linux-headers python3-dev
RUN pip install hatch
RUN hatch new myproject ./myproject
WORKDIR myproject
RUN hatch test --all
Trying to build this via docker build - < Dockerfile results in
I would expect hatch to setup the virtual environments with the corresponding Python version instead of raising an OSError. Am I missunderstanding the idea behind the virtual test environments? I would be happy for a hint on how to execute the complete test matrix without explicitly installing all Python versions in the docker container / system environment.
The text was updated successfully, but these errors were encountered:
I am trying to use hatch for running project tests using Gitlab actions and are running into an issue with test environments not being generated. In detail, when running a test matrix including Python versions not available in the system, the tests fail to install the correct versions and instead raise an
OSError
. Here's a minimal Dockerfile example demonstrating the issueTrying to build this via
docker build - < Dockerfile
results inI would expect hatch to setup the virtual environments with the corresponding Python version instead of raising an OSError. Am I missunderstanding the idea behind the virtual test environments? I would be happy for a hint on how to execute the complete test matrix without explicitly installing all Python versions in the docker container / system environment.
The text was updated successfully, but these errors were encountered: