Grzegorz Grasza 31452d63c6 Move linters to a separate job
Currently the molecule job runs extra python and linter checks.
This modifies it to run only molecule and adds the missing
linter job.

Change-Id: I8ae7ca2a134a55e99af995055748ebfcf2444fc5
2022-08-02 15:41:20 +02:00

19 lines
526 B
YAML

---
- hosts: all
environment:
ANSIBLE_LOG_PATH: "{{ ansible_user_dir }}/zuul-output/logs/ansible-execution.log"
pre_tasks:
- name: Set project path fact
set_fact:
tripleo_ipa_project_path: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/x/tripleo-ipa'].src_dir }}"
tasks:
- name: Run role test job
shell: |-
. {{ ansible_user_dir }}/test-python/bin/activate
tox -e molecule
args:
chdir: "{{ tripleo_ipa_project_path }}"
executable: /bin/bash