-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (39 loc) · 1.04 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
name: ansible test
on:
pull_request:
push:
schedule:
- cron: "45 5 * * 2"
jobs:
build:
name: ansible test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: install requirements
run: |
python -m pip install --upgrade pip
pip install ansible lxml cryptography
- name: debug versions
run: |
echo "which python ..."
which python
echo "python -VV ..."
python -VV
echo "pip --version ..."
pip --version
echo "pip list ..."
pip list
echo "ansible --version ..."
ansible --version
echo "ansible-config dump --only-changed -t all ..."
ansible-config dump --only-changed -t all
- name: run ansible test
working-directory: ./test
run: |
ansible-playbook -e ansible_python_interpreter=$(which python) -v test.yml