Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fedora-python/tox-github-action
Run Tox tests on Fedora for Github pushes & pull requests
https://github.com/fedora-python/tox-github-action
Last synced: about 1 month ago
JSON representation
Run Tox tests on Fedora for Github pushes & pull requests
- Host: GitHub
- URL: https://github.com/fedora-python/tox-github-action
- Owner: fedora-python
- Created: 2020-05-29T12:00:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-14T13:47:15.000Z (about 1 year ago)
- Last Synced: 2024-05-04T00:01:36.679Z (8 months ago)
- Language: Python
- Homepage: https://github.com/marketplace/actions/python-tox-on-fedora
- Size: 16.6 KB
- Stars: 13
- Watchers: 5
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Run Tox tests](https://github.com/fedora-python/tox-github-action/workflows/Run%20Tox%20tests/badge.svg)
![Run tests with code in this repository](https://github.com/fedora-python/tox-github-action/workflows/Run%20tests%20with%20code%20in%20this%20repository/badge.svg)# Tox Github Action
This GitHub action tests a checked-out Python project using
[Tox](https://tox.readthedocs.io/en/latest/index.html).## Usage
```yaml
- uses: fedora-python/tox-github-action
with:
# The tox environment to run
# Default: py311 (subject to change as new Python releases come out)
tox_env: py311
```Add the action to your workflow file, e.g. `.github/workflows/main.yml`,
after checking out your code.You can use the `matrix` strategy to run with multiple Tox environments.
For an example, see [this project's workflow](.github/workflows/main.yml).
Unfortunately, you need to repeat all the environment names
from your Tox configuration.
(As far as we know, this is required in order to have individual environments
show up as separate runs on GitHub. Discuss this limitation in [issue 8].)You can also install RPM packages from Fedora by setting `dnf_install` to
a space-separated list of *provides*, such as:* Fedora package names, e.g. `libgit2-devel`,
* pkgconfig names, e.g. `pkgconfig(libffi)`,
* commands, e.g. `/usr/bin/cowsay`, ...```yaml
- uses: fedora-python/tox-github-action
with:
tox_env: py38
dnf_install: pkgconfig(libffi) libgit2-devel
```The string will be literally used in `dnf install ...`, so you can also use
groups or DNF options.[issue 8]: https://github.com/fedora-python/tox-github-action/issues/8
If your application isn't in the root of your project, set `workdir`. The action
will switch to the specified path before tox execution.```yaml
- uses: fedora-python/tox-github-action
with:
tox_env: py38
workdir: "python/"
```## Changelog
Until version 0.4, this action always used the latest [fedora-python-tox](https://hub.docker.com/repository/docker/fedorapython/fedora-python-tox)
image. Since version 34.0, the first number in the version (also sometimes
referred to as the "major version") represents the release of Fedora used in the image.### v39.0
* Uses Fedora 39 as the base container image.
### v38.0
* Uses Fedora 38 as the base container image.
* PyPy 3.8 is no longer available.### v37.0
* Uses Fedora 37 as the base container image.
* PyPy 3.7 is no longer available.### v36.0
* Uses Fedora 36 as the base container image.
### v35.1
* Allows to run tests from a subdirectory via `workdir`.
### v35.0
* Uses Fedora 35 as the base container image.
* No longer supports Python 3.5 and PyPy 3.6.
* Newly supports PyPy 3.7, 3.8 and 3.9.### v34.0
* First version pinned explicitly to Fedora 34.
## License
The code, content and configuration in this repository is given away unter the
CC0 1.0 Universal Public Domain Dedication:
https://creativecommons.org/publicdomain/zero/1.0/May it serve you well!