-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
108 lines (90 loc) · 3.62 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: OPTIMADE validator
description: Validate your OPTIMADE server using the optimade-python-tools validator
author: Casper Welzel Andersen, Matthew Evans
branding:
icon: server
color: green
inputs:
all versioned paths:
description: >
Whether to test the optional versioned URLs:
/vMAJOR.MINOR; /vMAJOR.MINOR.PATCH
If `false`, only the mandatory /vMAJOR URL will be tested.
required: false
default: false
validate unversioned path:
description: >
Whether to validate the input URL as a full OPTIMADE implementation without appending any version.
This action assumes that the `path` parameter will contain an unversioned URL.
As it is not mandatory to run a full OPTIMADE implementation from the unversioned URL,
by default, this action will not perform any validation of this URL, beyond checking
the `/versions` endpoint.
required: false
default: false
as type:
description: >
Validate the request URL with the provided type, rather than scanning the entire implementation.
Example values: 'structures', 'reference'. For a full list of values see `optimade-python-tools`.
required: false
domain:
description: Domain for the OPTIMADE URL (defaults to the GH Actions runner host).
required: false
default: gh_actions_host
fail fast:
description: Whether or not to exit and return a non-zero error code on first failure.
required: false
default: false
index:
description: Whether or not this is an index meta-database.
required: false
default: false
create output:
description: >
Use `-j/--json` option for `optimade-validator`.
This will overwrite the `verbosity` input parameter, since it will be set to `-1` when using the `-j/--json` option.
required: false
default: false
path:
description: >
Path to append to the domain to reach the OPTIMADE unversioned base URL - MUST start with `/`.
The path MUST NOT include the versioned part of the base URL.
Rather, it MUST point to the unversioned base URL of your OPTIMADE implementation.
required: false
default: /
port:
description: Port for the OPTIMADE URL.
required: false
protocol:
description: Protocol for the OPTIMADE URL.
required: false
default: http
skip optional:
description: Whether or not to skip tests for optional features.
required: false
default: false
minimal:
description: Whether or not to reduce the validation to a minimal test set that only checks responses and not filters.
required: false
default: false
validator version:
description: >
Full version of an OPTIMADE Python tools release to PyPI, e.g., '0.6.0' or '0.3.4', which hosts the `optimade-validator`.
It can also be a branch, tag, or git commit to use from the GitHub repository, e.g., 'master', 'v0.6.0' or '5a5e903'.
See https://pip.pypa.io/en/latest/reference/pip_install/#git for more information of what is allowed here.
Finally, it may also be 'latest' (default), which is understood to be the latest official release of the `optimade` package on PyPI.
Note, for the latest development version, choose 'master'.
required: true
default: latest
verbosity:
description: The verbosity of the output
required: false
default: 1
outputs:
results:
description: >
JSON object with results overview from `optimade-validator`.
This is equivalent to passing `-j/--json` to `optimade-validator`.
NOTE: This is only set if `create output` is set to `True`.
runs:
using: 'docker'
image: 'Dockerfile'