diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml new file mode 100644 index 000000000..092c906ef --- /dev/null +++ b/.github/workflows/integration_tests.yaml @@ -0,0 +1,35 @@ +name: Integration Test + +on: + push: + branches: [ v0.10 ] + pull_request: + branches: [ v0.10 ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install Ansible + run: | + python -m pip install --upgrade pip + pip install ansible + + - name: Run Ansible Playbook + run: | + ansible-playbook data/ansible/integration_tests/main.yaml -i localhost, -c local -e "ansible_user=$(whoami)" + + - name: Run integration tests + run: | + sudo su <