Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/this-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ jobs:
uses: ./
with:
tox_env: ${{ matrix.tox_env }}
dnf_install: ${{ matrix.dnf_install }}
strategy:
matrix:
tox_env: [py39]
dnf_install: ["", "libffi-devel", "--enablerepo=updates-testing libffi-devel libyaml-devel"]

# Use GitHub's Linux Docker host
runs-on: ubuntu-latest
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ 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].)

Optionally, you can install RPM packages from Fedora by setting the
`dnf_install` to a space separated list of packages (or provides, groups etc.,
the string will be literally used in `dnf install ...`):

```yaml
- uses: fedora-python/tox-github-action
with:
tox_env: py38
dnf_install: libffi-devel libyaml-devel
```

[issue 8]: https://github.com/fedora-python/tox-github-action/issues/8

Expand Down
10 changes: 7 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ inputs:
required: true
default: 'py38'
description: Tox environment to run the tests on
dnf_install:
required: false
default: ''
description: Space separated packages to install via dnf install (can contain options)
runs:
using: docker
image: docker://fedorapython/fedora-python-tox
entrypoint: tox
args:
- '-e${{ inputs.tox_env }}'
env:
TOXENV: ${{ inputs.tox_env }}
DNF_INSTALL: ${{ inputs.dnf_install }}
branding:
color: green
icon: check