Skip services tests on Insp4.

Atheme doesn't support it yet.
This commit is contained in:
Valentin Lorentz 2021-07-03 20:34:30 +02:00
parent 8288e36469
commit 9581ca0cf3
3 changed files with 9 additions and 2 deletions

View File

@ -36,7 +36,7 @@ jobs:
make -j 4
make install
- name: Test with pytest
run: PATH=~/.local/inspircd/bin:$PATH make inspircd
run: PATH=~/.local/inspircd/bin:$PATH PYTEST_ARGS="-m 'not services'" make inspircd
name: irctest with InspIRCd (devel)
'on':
schedule:

View File

@ -97,6 +97,10 @@ def generate_workflow(config: dict, software_id: str, version_flavor: VersionFla
"workflow_dispatch": None,
}
env = software_config.get("env", {}).get(version_flavor.value, "")
if env:
env += " "
workflow = {
"name": f"irctest with {name} ({version_flavor.value})",
"on": on,
@ -135,7 +139,7 @@ def generate_workflow(config: dict, software_id: str, version_flavor: VersionFla
*install_steps,
{
"name": "Test with pytest",
"run": f"PATH={prefix}/bin:$PATH make {software_id}",
"run": f"PATH={prefix}/bin:$PATH {env}make {software_id}",
},
],
}

View File

@ -70,6 +70,9 @@ software:
release: null
devel: master
devel_release: insp3
env:
# Atheme does not support Insp4 yet, so it fails to connect
devel: "PYTEST_ARGS=\"-m 'not services'\""
path: inspircd
prefix: ~/.local/inspircd
build_script: |