I setup Travis to run pytest
on Linux, Windows and MacOS
The build ran successfully on linux but stuck right at the code below on OS X and Windows
This is my .config.yml
:
language: python
jobs:
include:
- name: "Python 3.5.6 on Xenial Linux"
python: 3.5
- name: "Python 3.7.7 on macOS"
os: osx
osx_image: xcode11.3
language: shell
- name: "Python 3.5.4 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.5.4
- python -m pip install --upgrade pip
env: PATH=/c/Python35:/c/Python35/Scripts:$PATH
install:
- pip3 install --upgrade pip
- pip3 install -r "requirements.txt"
script:
- cd src/
- pytest
And this is what on the console:
$ pytest
============================= test session starts ==============================
platform darwin -- Python 3.7.7, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /Users/travis/build/MunchDev/EpidemicSimulator/src
collected 2 items
test_a.py
Any idea how to fix thiss?