I’m hoping to use the
language: generic under the
xenial image to test a project that uses both C and Python. The Python tests call the C code. I have tested both the C code and Python code independently on Travis-CI and each works fine.
The build is here:
the yaml file is the following:
language: generic dist: xenial env: PYTHON_VERSION=3.6.2 python: 3.6 before_install: - sudo apt-get update - sudo apt-get install libgsl-dev install: - pip install --user -r tests/requirements.txt script: - python -m pytest
The difficulty I seem to be having is that my tests require a specific Python version (which seems possible with the
generic image) yet I can’t seem load Python 3.
How do I load a specific Python version (Python 3) so that
pytest will work with that version of Python?
Any help would be much appreciated!