-
Notifications
You must be signed in to change notification settings - Fork 110
46 lines (40 loc) · 1.16 KB
/
integration-tests.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
41
42
43
44
45
46
name: Run integration tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Run the integration tests every 8 hours.
# This will help to identify faster if
# there is a CI failure related to a
# change in any dependency.
schedule:
- cron: '0 */8 * * *'
jobs:
integration:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "17"
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install package dependencies
run: |
sudo apt-get update
sudo apt-get --assume-yes --no-install-recommends install libsystemd0 libsystemd-dev pkg-config
- name: Install test requirements
run: |
pip install -U pip
pip install wheel
pip install -r test_requirements.txt
- name: Install collection
run: ansible-galaxy collection install .
- name: run integration tests
run: pytest tests/integration -vvv -s