-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add README.md for action/parse-ci-config
- Loading branch information
Showing
2 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# parse-ci-config | ||
|
||
This action parses the CI testing configuration file. The caller of the action needs to checkout the branch where the config file is defined before running this action. | ||
|
||
## Inputs | ||
|
||
| Name | Type | Description | Required | Example | | ||
| ---- | ---- | ----------- | -------- | ------- | | ||
| check | `string` | The type of check/test to run | true | `scheduled` | | ||
| branch-or-tag | `string` | The name of git branch or tag | true | `release-1deg_jra55_ryf-2.0` | | ||
| config-filepath | `string` | Path to configuration file | true | `config/ci.json` | | ||
|
||
## Outputs | ||
|
||
| Name | Type | Description | Example | | ||
| ---- | ---- | ----------- | -------- | | ||
| markers | `string` | Markers used for the pytest checks, in the python format | `checksum` | | ||
| model-config-tests-version | `string` | The version of the model-config-tests | `0.0.1` | | ||
| python-version | `string` | The python version used to create test virtual environment | `3.11.0` | | ||
|
||
## Example usage | ||
|
||
```yaml | ||
# --------- | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
|
||
- name: Read scheduled test config | ||
id: scheduled-config | ||
uses: access-nri/access-om2-configs/.github/actions/parse-ci-config@main | ||
with: | ||
check: scheduled | ||
branch-or-tag: "release-1deg_jra55_ryf-2.0" | ||
config-filepath: "config/ci.json" | ||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters