Skip to content

Commit 0c4472d

Browse files
committed
Allow installing RPM packages via DNF
1 parent 4c2107e commit 0c4472d

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/this-repo.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ jobs:
1515
uses: ./
1616
with:
1717
tox_env: ${{ matrix.tox_env }}
18+
dnf_install: ${{ matrix.dnf_install }}
1819
strategy:
1920
matrix:
2021
tox_env: [py39]
22+
dnf_install: ["", "libffi-devel", "--enablerepo=updates-testing libffi-devel libyaml-devel"]
2123

2224
# Use GitHub's Linux Docker host
2325
runs-on: ubuntu-latest

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ from your Tox configuration.
2727
(As far as we know, this is required in order to have individual environments
2828
show up as separate runs on GitHub. Discuss this limitation in [issue 8].)
2929

30+
Optionally, you can install RPM packages from Fedora by setting the
31+
`dnf_install` to a space separated list of packages (or provides, groups etc.,
32+
the string will be literally used in `dnf install ...`):
33+
34+
```yaml
35+
- uses: fedora-python/tox-github-action
36+
with:
37+
tox_env: py38
38+
dnf_install: libffi-devel libyaml-devel
39+
```
3040

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

action.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ inputs:
55
required: true
66
default: 'py38'
77
description: Tox environment to run the tests on
8+
dnf_install:
9+
required: false
10+
default: ''
11+
description: Space separated packages to install via dnf install (can contain options)
812
runs:
913
using: docker
1014
image: docker://fedorapython/fedora-python-tox
11-
entrypoint: tox
12-
args:
13-
- '-e${{ inputs.tox_env }}'
15+
env:
16+
TOXENV: ${{ inputs.tox_env }}
17+
DNF_INSTALL: ${{ inputs.dnf_install }}
1418
branding:
1519
color: green
1620
icon: check

0 commit comments

Comments
 (0)