mirror of
https://github.com/progval/irctest.git
synced 2025-04-05 06:49:47 +00:00
Update the GitHub Actions dependencies used by make_workflows.
Fixes various CI warnings.
This commit is contained in:
committed by
Val Lorentz
parent
330300eba1
commit
15c077d511
@ -65,7 +65,7 @@ def get_install_steps(*, software_config, software_id, version_flavor):
|
||||
install_steps = [
|
||||
{
|
||||
"name": f"Checkout {name}",
|
||||
"uses": "actions/checkout@v3",
|
||||
"uses": "actions/checkout@v4",
|
||||
"with": {
|
||||
"repository": software_config["repository"],
|
||||
"ref": ref,
|
||||
@ -94,7 +94,7 @@ def get_build_job(*, software_config, software_id, version_flavor):
|
||||
cache = [
|
||||
{
|
||||
"name": "Cache dependencies",
|
||||
"uses": "actions/cache@v3",
|
||||
"uses": "actions/cache@v4",
|
||||
"with": {
|
||||
"path": f"~/.cache\n${{ github.workspace }}/{path}\n",
|
||||
"key": "3-${{ runner.os }}-"
|
||||
@ -123,10 +123,10 @@ def get_build_job(*, software_config, software_id, version_flavor):
|
||||
"run": "cd ~/; mkdir -p .local/ go/",
|
||||
},
|
||||
*cache,
|
||||
{"uses": "actions/checkout@v3"},
|
||||
{"uses": "actions/checkout@v4"},
|
||||
{
|
||||
"name": "Set up Python 3.11",
|
||||
"uses": "actions/setup-python@v4",
|
||||
"uses": "actions/setup-python@v5",
|
||||
"with": {"python-version": 3.11},
|
||||
},
|
||||
*install_steps,
|
||||
@ -160,7 +160,7 @@ def get_test_job(*, config, test_config, test_id, version_flavor, jobs):
|
||||
downloads.append(
|
||||
{
|
||||
"name": "Download build artefacts",
|
||||
"uses": "actions/download-artifact@v3",
|
||||
"uses": "actions/download-artifact@v4",
|
||||
"with": {"name": f"installed-{software_id}", "path": "~"},
|
||||
}
|
||||
)
|
||||
@ -195,10 +195,10 @@ def get_test_job(*, config, test_config, test_id, version_flavor, jobs):
|
||||
"runs-on": "ubuntu-22.04",
|
||||
"needs": needs,
|
||||
"steps": [
|
||||
{"uses": "actions/checkout@v3"},
|
||||
{"uses": "actions/checkout@v4"},
|
||||
{
|
||||
"name": "Set up Python 3.11",
|
||||
"uses": "actions/setup-python@v4",
|
||||
"uses": "actions/setup-python@v5",
|
||||
"with": {"python-version": 3.11},
|
||||
},
|
||||
*downloads,
|
||||
@ -232,7 +232,7 @@ def get_test_job(*, config, test_config, test_id, version_flavor, jobs):
|
||||
{
|
||||
"name": "Publish results",
|
||||
"if": "always()",
|
||||
"uses": "actions/upload-artifact@v3",
|
||||
"uses": "actions/upload-artifact@v4",
|
||||
"with": {
|
||||
"name": f"pytest-results_{test_id}_{version_flavor.value}",
|
||||
"path": "pytest.xml",
|
||||
@ -251,7 +251,7 @@ def upload_steps(software_id):
|
||||
},
|
||||
{
|
||||
"name": "Upload build artefacts",
|
||||
"uses": "actions/upload-artifact@v3",
|
||||
"uses": "actions/upload-artifact@v4",
|
||||
"with": {
|
||||
"name": f"installed-{software_id}",
|
||||
"path": "~/artefacts-*.tar.gz",
|
||||
@ -312,10 +312,10 @@ def generate_workflow(config: dict, version_flavor: VersionFlavor):
|
||||
# this job then
|
||||
"if": "success() || failure()",
|
||||
"steps": [
|
||||
{"uses": "actions/checkout@v3"},
|
||||
{"uses": "actions/checkout@v4"},
|
||||
{
|
||||
"name": "Download Artifacts",
|
||||
"uses": "actions/download-artifact@v3",
|
||||
"uses": "actions/download-artifact@v4",
|
||||
"with": {"path": "artifacts"},
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user