Add R-devel to GHA CI tests
This commit is contained in:
parent
09e29e69fa
commit
5fd5d31a08
2 changed files with 11 additions and 8 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -25,9 +25,9 @@ on:
|
||||||
description: |
|
description: |
|
||||||
Comma-separated list of R versions. Specify "last-N" to use the
|
Comma-separated list of R versions. Specify "last-N" to use the
|
||||||
last N minor R versions, or "all" to use all minor R versions since R 3.1.
|
last N minor R versions, or "all" to use all minor R versions since R 3.1.
|
||||||
Defaults to "last-5".
|
Defaults to "last-5,devel".
|
||||||
required: false
|
required: false
|
||||||
default: 'last-5'
|
default: 'last-5,devel'
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@ def main():
|
||||||
'versions',
|
'versions',
|
||||||
type=str,
|
type=str,
|
||||||
nargs='?',
|
nargs='?',
|
||||||
default='last-5',
|
default='last-5,devel',
|
||||||
help="""Comma-separated list of R versions. Specify "last-N" to use the
|
help="""Comma-separated list of R versions. Specify "last-N" to use the
|
||||||
last N minor R versions, or "all" to use all minor R versions since R 3.1.
|
last N minor R versions, or "all" to use all minor R versions since R 3.1.
|
||||||
Defaults to "last-5".
|
Defaults to "last-5,devel".
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
@ -28,14 +28,17 @@ def main():
|
||||||
|
|
||||||
def _get_versions(which='all'):
|
def _get_versions(which='all'):
|
||||||
supported_versions = sorted(_get_supported_versions(), reverse=True)
|
supported_versions = sorted(_get_supported_versions(), reverse=True)
|
||||||
|
versions = []
|
||||||
|
for version in which.split(','):
|
||||||
|
versions.extend(_expand_version(version, supported_versions))
|
||||||
|
return versions
|
||||||
|
|
||||||
|
def _expand_version(which, supported_versions):
|
||||||
last_n_versions = None
|
last_n_versions = None
|
||||||
if which.startswith('last-'):
|
if which.startswith('last-'):
|
||||||
last_n_versions = int(which.replace('last-', ''))
|
last_n_versions = int(which.replace('last-', ''))
|
||||||
elif which != 'all':
|
elif which != 'all':
|
||||||
versions = which.split(',')
|
return [which] if which in supported_versions else []
|
||||||
versions = [v for v in versions if v in supported_versions]
|
|
||||||
return versions
|
|
||||||
|
|
||||||
versions = {}
|
versions = {}
|
||||||
for ver in supported_versions:
|
for ver in supported_versions:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue