diff --git a/README.md b/README.md index 8178cc4..049d2ce 100644 --- a/README.md +++ b/README.md @@ -35,12 +35,13 @@ jobs: | `workspace` | The root directory containing your Rasa Open Source project | `${{ github.workspace }}` | | `train_type` | The types of training (available types: `core`/`nlu`/`all`) | `all` | | `train_args` | Additional arguments passed to the `rasa train` command | `none` | -| `test_type` | The types of tests to run (available types: `core`/`nlu`/`all`) | `all` | +| `test_type` | The types of tests to run (available types: `core`/`nlu`/`all`/`none`) | `all` | | `test_nlu_args` | Additional arguments passed to the `rasa test nlu` command | `none` | | `test_core_args` | Additional arguments passed to the `rasa test core` command | `none` | | `publish_summary` | Publish tests summary as a PR comment | `true` | | `github_token` | GitHub Token - required to add a comment with summary | `none` | | `rasa_pro_license` | Rasa Pro License - set RASA_PRO_LICENSE environment from secrets | `none` | +| `openai_api_key` | OpenAI API Key - set OPENAI_API_KEY environment from secrets | `none` | | `configuration` | Model configuration file | `config.yml` | | `model` | Path to a file with a model. Use existing model instead of training a new one | `none` | | `cross_validation` | Switch on cross validation mode. Any provided model will be ignored | `false` | diff --git a/action.yml b/action.yml index 108e635..e741337 100644 --- a/action.yml +++ b/action.yml @@ -65,6 +65,10 @@ inputs: description: 'Rasa Pro License - set RASA_PRO_LICENSE environment' required: false default: '' + openai_api_key: + description: 'OPENAI_API_KEY' + required: false + default: '' configuration: description: 'Model configuration file' required: true @@ -153,6 +157,9 @@ runs: core) echo TEST_CORE="true" >> $GITHUB_ENV ;; + none) + echo "No tests will be run" + ;; *) echo "::error::Unknown test type: ${{ inputs.test_type }} (use: core/nlu/all)" exit 1 @@ -172,6 +179,7 @@ runs: echo DOCKER_ARGS="--rm --tmpfs ${{ inputs.tmpfs_directory }} -e HOME=/app -e MPLCONFIGDIR=/tmp/.mplconfigdir \ -e CI=${CI} -e RASA_TELEMETRY_ENABLED=${{ env.RASA_TELEMETRY_ENABLED }} -v ${{ github.workspace }}:/app/github_workspace \ -e RASA_PRO_LICENSE=${{ inputs.RASA_PRO_LICENSE }} \ + -e OPENAI_API_KEY=${{ inputs.OPENAI_API_KEY }} \ -v ${{ inputs.workspace }}:/app -v ${{ inputs.workspace }}/models:/app/models \ -v ${{ inputs.workspace }}/${{ inputs.result_directory }}:/app/results" >> $GITHUB_ENV