Skip to content

Commit 9d08394

Browse files
committed
Update GH integration workflow file
1 parent a155e40 commit 9d08394

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

.github/workflows/tests.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,48 @@ jobs:
6666
}
6767
]
6868
integration:
69-
uses: ansible/ansible-content-actions/.github/workflows/integration.yaml@main
69+
runs-on: ubuntu-latest
70+
timeout-minutes: 60
71+
env:
72+
ansible_version: "milestone"
73+
python_version: "3.12"
74+
steps:
75+
- name: Checkout collection
76+
uses: actions/checkout@v4
77+
78+
- name: Set up Python ${{ env.python_version }}
79+
uses: actions/setup-python@v4
80+
with:
81+
python-version: ${{ env.python_version }}
82+
83+
- name: Install ansible-core (${{ env.ansible_version }})
84+
run: >-
85+
python3 -m pip install
86+
https://github.com/ansible/ansible/archive/${{ env.ansible_version }}.tar.gz
87+
--disable-pip-version-check
88+
shell: bash
89+
90+
- name: Build and install collection
91+
id: install-collection
92+
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
93+
with:
94+
install_python_dependencies: true
95+
source_path: .
96+
97+
- name: Set up git
98+
run: |
99+
git config --global user.email gha@localhost
100+
git config --global user.name "Github Actions"
101+
shell: bash
102+
103+
- name: Run integration tests
104+
uses: ansible-network/github_actions/.github/actions/ansible_test_integration@main
105+
with:
106+
collection_path: ${{ steps.install-collection.outputs.collection_path }}
107+
python_version: ${{ env.python_version }}
108+
ansible_version: ${{ env.ansible_version }}
109+
env:
110+
ANSIBLE_TEST_GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
70111
all_green:
71112
if: ${{ always() }}
72113
needs:

0 commit comments

Comments
 (0)