Skip to content

Commit 929e70e

Browse files
committed
adjust ci
1 parent 1dfdcb7 commit 929e70e

File tree

3 files changed

+76
-69
lines changed

3 files changed

+76
-69
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Set update schedule for GitHub Actions
2+
---
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"

.github/workflows/integration.yml

Lines changed: 51 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ name: Collection integration
22

33
on:
44
push:
5-
branches:
6-
- master
5+
tags: "v*"
76
pull_request:
87
schedule:
9-
- cron: 30 6 * * *
8+
- cron: 30 6 * * 2
109

1110
jobs:
1211
integration-test:
@@ -19,61 +18,61 @@ jobs:
1918
fail-fast: false
2019
matrix:
2120
python-version:
22-
- 3.8
21+
- 3.8
2322
group:
24-
- 1
25-
- 2
23+
- 1
24+
- 2
2625
ansible-branch:
27-
- devel
26+
- devel
2827
container-version:
29-
- 1.4.0
30-
- 1.2.0
28+
- 1.4.0
29+
- 1.2.0
3130
steps:
32-
- name: Check out code
33-
uses: actions/checkout@v2
34-
with:
35-
path: ansible_collections/ngine_io/cloudstack
31+
- name: Check out code
32+
uses: actions/checkout@v2
33+
with:
34+
path: ansible_collections/ngine_io/cloudstack
3635

37-
- name: Set up Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v2
39-
with:
40-
python-version: ${{ matrix.python-version }}
36+
- name: Set up Python ${{ matrix.python-version }}
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: ${{ matrix.python-version }}
4140

42-
- name: Install ansible and collection dependencies
43-
run: |
44-
python -m pip install --upgrade pip
45-
pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-branch }}.tar.gz
46-
pip install -r requirements.txt
41+
- name: Install ansible and collection dependencies
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-branch }}.tar.gz
45+
pip install -r requirements.txt
4746
48-
- name: Build and install collection
49-
run: |
50-
ansible-galaxy collection build .
51-
ansible-galaxy collection install *.gz
47+
- name: Build and install collection
48+
run: |
49+
ansible-galaxy collection build .
50+
ansible-galaxy collection install *.gz
5251
53-
- name: Run the tests
54-
run: >-
55-
ansible-test
56-
integration
57-
--docker
58-
-v
59-
--diff
60-
--color
61-
--retry-on-error
62-
--python ${{ matrix.python-version }}
63-
--continue-on-error
64-
--coverage
65-
shippable/cs/group${{ matrix.group }}/
66-
env:
67-
ANSIBLE_CLOUDSTACK_CONTAINER: quay.io/ansible/cloudstack-test-container:${{ matrix.container-version }}
52+
- name: Run the tests
53+
run: >-
54+
ansible-test
55+
integration
56+
--docker
57+
-v
58+
--diff
59+
--color
60+
--retry-on-error
61+
--python ${{ matrix.python-version }}
62+
--continue-on-error
63+
--coverage
64+
shippable/cs/group${{ matrix.group }}/
65+
env:
66+
ANSIBLE_CLOUDSTACK_CONTAINER: quay.io/ansible/cloudstack-test-container:${{ matrix.container-version }}
6867

69-
- name: Generate coverage report.
70-
run: >-
71-
ansible-test
72-
coverage xml
73-
-v
74-
--requirements
75-
--group-by command
76-
--group-by version
77-
- uses: codecov/codecov-action@v1
78-
with:
79-
fail_ci_if_error: false
68+
- name: Generate coverage report.
69+
run: >-
70+
ansible-test
71+
coverage xml
72+
-v
73+
--requirements
74+
--group-by command
75+
--group-by version
76+
- uses: codecov/codecov-action@v1
77+
with:
78+
fail_ci_if_error: false

.github/workflows/sanity.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Sanity
22
on:
33
schedule:
4-
- cron: "5 12 * * *"
4+
- cron: "5 12 * * 2"
55
pull_request:
66

77
jobs:
@@ -13,24 +13,24 @@ jobs:
1313
strategy:
1414
matrix:
1515
ansible:
16-
- stable-2.11
17-
- stable-2.10
18-
- stable-2.9
19-
- devel
16+
- stable-2.12
17+
- stable-2.11
18+
- stable-2.10
19+
- devel
2020
runs-on: ubuntu-latest
2121
steps:
22-
- name: Check out code
23-
uses: actions/checkout@v2
24-
with:
25-
path: ansible_collections/ngine_io/cloudstack
22+
- name: Check out code
23+
uses: actions/checkout@v2
24+
with:
25+
path: ansible_collections/ngine_io/cloudstack
2626

27-
- name: Set up Python
28-
uses: actions/setup-python@v2
29-
with:
30-
python-version: '3.x'
27+
- name: Set up Python
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: "3.x"
3131

32-
- name: Install ansible-base (${{ matrix.ansible }})
33-
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
32+
- name: Install ansible-base (${{ matrix.ansible }})
33+
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
3434

35-
- name: Run sanity tests
36-
run: ansible-test sanity --docker -v --color
35+
- name: Run sanity tests
36+
run: ansible-test sanity --docker -v --color

0 commit comments

Comments
 (0)