Closed AdrienLemaire closed 2 years ago
- run: sudo apt update && sudo apt-get install zlib
Got:
E: Unable to locate package zlib
Error: Process completed with exit code 100.
Installing zlib1g returns the same error as previously posted, as expected
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Why would installing zlib on the github host make it available within the step's docker container ? We need the Dockerfile to run this install, and I was wondering if you could accommodate the options to allow for extra packages to be installed within the container, since not all users will want to have zib or other library to be installed for a pytest check.
You don't really need the GitHub Action anymore. You can just use...
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install pytest
- run: pytest --doctest-modules . || pytest .
Fair enough :) Thanks for the quick replies.
I understand that we need to pip install requirements within the
args
parameter of the pytest step in order to get pytest working, but one of the dependencies is missing zlib headers when github builds the docker image.my conf
What do you recommend to circumvent this issue ?