Skip to content

Commit

Permalink
Allow options for tox.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Dec 22, 2019
1 parent 2e2af5d commit 5cc1352
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ The image you want to run on. Default '"fedora"'.

The tag of the container image to use. Default '"latest"'.

### `options`

The options to pass to `tox`. For example `parallel`. Default '""'. (empty)

## Example usage

Here is a default configuration that tests your role on `namespace: robertdebock`, `image: fedora`, `tag: latest`.
Expand Down Expand Up @@ -97,7 +101,8 @@ jobs:
- name: molecule
uses: robertdebock/molecule-action@master
with:
image: ${{ matrix.image }}
image: "${{ matrix.image }}"
options: parallel
```

You can also test different tags, this is a bit clunky; you basically define a full matrix and exclude many tags.
Expand Down Expand Up @@ -198,5 +203,6 @@ jobs:
- name: molecule
uses: robertdebock/molecule-action@master
with:
image: ${{ matrix.image }}
image: "${{ matrix.image }}"
options: parallel
```
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
description: The tag of the container image to use.
required: false
default: latest
options:
description: Options you can pass to tox, for example `parallel`.
required: false
default: ""

runs:
using: docker
Expand Down

0 comments on commit 5cc1352

Please sign in to comment.