coursera-dl/.travis.yml
Rogério Brito c2325c9942 travis,appveyor: Substitute old Python versions with new ones.
According to
<https://en.wikipedia.org/wiki/History_of_Python#Table_of_versions>, the
(current) earliest supported version is 3.6 (with only 3.8 and 3.9 being
supported with binaries, 3.6 and 3.7 supported only with source code).

Some things to keep in mind here, according to the current download page of
Python for Windows (which, I suppose, is where the majority of our users
are):

* Python 3.6, 3.7 and 3.8 support [only Windows Vista and newer][python38].
* Python 3.9 doesn't suport Windows 7; [only 8.1 or newer][python39].

[python38]: https://docs.python.org/3.8/using/windows.html#using-python-on-windows
[python39]: https://docs.python.org/3.9/using/windows.html#using-python-on-windows

I'm still keeping Python 2.7 in the support tests (despite it being dead),
but am considering dropping it in the near term (and removing the
workarounds to support multiple versions).
2021-02-11 19:41:51 -03:00

21 lines
395 B
YAML

language: python
python:
- "2.7"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "pypy"
matrix:
allow_failures:
- python: "pypy"
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install coveralls
# command to run tests
script: py.test coursera/test -v --cov coursera --cov-report html
after_success:
coveralls