mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ci: simplify 'test actionsmap' job, move it to linting
This commit is contained in:
parent
a0d6c9a032
commit
35c809a726
3 changed files with 8 additions and 13 deletions
|
@ -3,6 +3,14 @@
|
|||
########################################
|
||||
# later we must fix lint and format-check jobs and remove "allow_failure"
|
||||
|
||||
actionsmap:
|
||||
stage: lint
|
||||
image: "before-install"
|
||||
needs: []
|
||||
script:
|
||||
- python -c 'import yaml; yaml.safe_load(open("share/actionsmap.yml"))'
|
||||
- python -c 'import yaml; yaml.safe_load(open("share/actionsmap-portal.yml"))'
|
||||
|
||||
lint311:
|
||||
stage: lint
|
||||
image: "before-install"
|
||||
|
|
|
@ -48,14 +48,6 @@
|
|||
# reports:
|
||||
# junit: report.xml
|
||||
|
||||
test-actionmap:
|
||||
extends: .test-stage
|
||||
script:
|
||||
- python3 -m pytest tests/test_actionmap.py
|
||||
# only:
|
||||
# changes:
|
||||
# - share/actionsmap.yml
|
||||
|
||||
test-helpers:
|
||||
extends: .test-stage
|
||||
script:
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
import yaml
|
||||
|
||||
|
||||
def test_yaml_syntax():
|
||||
yaml.safe_load(open("share/actionsmap.yml"))
|
Loading…
Add table
Reference in a new issue