-
Notifications
You must be signed in to change notification settings - Fork 153
Description
There are three tasks related to CI on Travis.
Tests on Windows
When performing a PR we test RADIS on
- Linux Python 3.10
- Linux Python 3.11
When merging develop to master, we also test
- Linux Python 3.9
- Mac OS, Python 3.10 EDIT: not anymore since 31/03/2025, see https://docs.travis-ci.com/user/reference/osx/
To make sure we do not release a new version that fails on Windows, the following test must be added when merging develop to master,
- Windows, Python 3.10
Reduce fetching error
- Preload 1 HITRAN file (e.g. CO) to avoid downloading it
- Make a separate test section called 'fetch test' to only try fetching on the external servers (HITRAN, NIST etc.)
Accelerate the tests
As of late August 2025, each list of tests executed on a single Python version costs approximately 7 minutes [EDITED]. Any solution to accelerate these tests would be great because 1/ we have to ask Travis for new free credits regularly and 2/ we have to wait to see the results of our PR. Potential to accelerate the tests:
- Reduce time of install by leverage of the cache option of Travis https://docs.travis-ci.com/user/caching/
- Find redondant tests (a function tested several times)
- Find deprecated functions that are still tested
- Reduce the number of databases that are downloaded (we just need to test once that our fetching functions are still working for each type of database)
- Any suggestion to reduce the duration of the longer tests
Note: These actions should not reduce the test coverage.
Test coverage
Coverage can be tracked there: https://app.codecov.io/gh/radis/radis. See also https://radis.readthedocs.io/en/develop/dev/developer.html#code-coverage
- Increase code coverage