Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mineo/tox2travis
Convert tox.ini to .travis.yml or GitHub actions YAML files
https://github.com/mineo/tox2travis
actions github-actions github-actions-python python testing tox travis
Last synced: about 1 month ago
JSON representation
Convert tox.ini to .travis.yml or GitHub actions YAML files
- Host: GitHub
- URL: https://github.com/mineo/tox2travis
- Owner: mineo
- License: mit
- Created: 2017-12-13T23:34:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T08:08:40.000Z (over 4 years ago)
- Last Synced: 2024-09-26T09:23:00.915Z (about 2 months ago)
- Topics: actions, github-actions, github-actions-python, python, testing, tox, travis
- Language: Python
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tox2travis
![Run tox](https://github.com/mineo/tox2travis/workflows/Run%20tox/badge.svg)
[![Build Status](https://travis-ci.org/mineo/tox2travis.svg?branch=master)](https://travis-ci.org/mineo/tox2travis)After installing, simply call `tox2travis` in a directory that
contains a `tox.ini` file. A `.travis.yml` file will be generated.`tox2travis` will be able to map environment names using tox's
[default
environments](https://tox.readthedocs.io/en/latest/example/basic.html#a-simple-tox-ini-default-environments)
to the correct python version on Travis automatically.## Non-standard environment names
If an environment name does not match one of the default environments
provided by tox, tox2travis will simply ignore it. To specify a python
version for such environments, use the `--fallback-python` command line
argument:```
tox2travis --fallback-python pythonx.y
```The value passed to the argument must be a valid
[basepython](https://tox.readthedocs.io/en/latest/config.html#conf-basepython).## Custom basepython
If environments specified in `tox.ini` use a
[basepython](https://tox.readthedocs.io/en/latest/config.html#conf-basepython)
that can not be automatically mapped to one of the supported python
versions on Travis, use the `--custom-mapping` command line argument:```
tox2travis --custom-mapping
```## GitHub Actions
Despite the name, `tox2travis` can also generate a configuration file
for [GitHub Actions](https://github.com/features/actions). Simply call
`tox2travis --output=actions` in a directory that contains a
`tox.ini` file. A new file `.github/workflows/tox.yml` will be
generated.