Skip to content

allow to use variable in ignore_errors #25

allow to use variable in ignore_errors

allow to use variable in ignore_errors #25

name: On pull request
on: [pull_request] # set to this value when pushing in prod
#on: [push] # set this one to dev the ci/cd
env:
ANSIBLE_CONFIG: "ansible.cfg"
jobs:
unit-tests:
runs-on: ubuntu-latest
# runs-on: self-hosted # set this one to dev the ci/cd
strategy:
matrix:
python-version: [ '3.10']
poetry-version: ['1.1.13']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/[email protected]
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install python dependencies
run: |
poetry install
- name: Run Python unit tests
run: poetry run python3 -m unittest discover
- name: Run functional test
run: |
cd tests/ansible_test
./run_ansible_tests.sh