From 5cc13520e0566795d70cc7c0f5418bd10c06b244 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Sun, 22 Dec 2019 20:59:08 +0100 Subject: [PATCH] Allow options for tox. --- README.md | 10 ++++++++-- action.yml | 4 ++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e348b9f..a1d37a2 100644 --- a/README.md +++ b/README.md @@ -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`. @@ -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. @@ -198,5 +203,6 @@ jobs: - name: molecule uses: robertdebock/molecule-action@master with: - image: ${{ matrix.image }} + image: "${{ matrix.image }}" + options: parallel ``` diff --git a/action.yml b/action.yml index 7433b2b..eb4ea88 100644 --- a/action.yml +++ b/action.yml @@ -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