Skip to content

Commit 5f743e6

Browse files
IsaacVReyfernandofloresgAndreMarcel99
authored
Enabler/add ansible sanity action (#1313)
* Create bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Update bandit.yml * Added changelog action * Update changelog.yml * Create close-stale-issues * Update close-stale-issues Quite el workflow dispatch * Create bandit2.yml * Update bandit2.yml * Update zos_copy.py * Update zos_copy.py Me equivoque * Create ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Update ansible-test.yml * Added ac changelog * added lint as an option * Added documentation to ac_changelog * Changed 'lint' to 'command' on ac_changelog * Create * Create first version of the changelog action * Update changelog.yml * Fix changelog.yml * Change name of action Antsibull 'Changelog lint' to AC Changelog lint * Rename 'changelog.yml' to 'ac_changelog.yml * Create ac_changelog.yml * Update ac_changelog.yml * Update ac_changelog.yml * Update ac_changelog.yml * Change path in 'venv setup' on ac * Change ac_changelog.yml * Change ac_changelog.yml * Change ac_changelog.yml * Change ac_changelog.yml * Removed not required github actions * Update zos_copy.py * Update ac_changelog.yml * Create 'ac-ansible-test.yml' * Test * Delete test changelog * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix ac ansible sanity * Fix paths * Delete commented lines * Delete weird changes * Delete weird changes * Update ac-ansible-test-sanity.yml --------- Co-authored-by: Fernando Flores <[email protected]> Co-authored-by: André Marcel Gutiérrez Benítez <[email protected]>
1 parent ed26cf8 commit 5f743e6

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: AC Ansible sanity
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dev
7+
- staging*
8+
paths-ignore:
9+
- '**.tar.gz'
10+
- 'pycache/**'
11+
- '.ansible-lint'
12+
- 'cache/**'
13+
- '.DS_Store'
14+
- '.git/**'
15+
- '.github/**'
16+
- '.gitignore'
17+
- '.python-version'
18+
- '.pytest_cache/**'
19+
- '.vscode/**'
20+
- 'Jenkinsfile'
21+
- 'ac'
22+
- 'ansible.cfg'
23+
- 'changelogs/**'
24+
- 'collections/**'
25+
- 'docs/**'
26+
- 'scripts/**'
27+
- 'test_config.yml'
28+
- 'tests/*.ini'
29+
- 'tests/*.py'
30+
- 'tests/.pytest_cache'
31+
- 'tests/pycache'
32+
- 'tests/functional'
33+
- 'tests/helpers'
34+
- 'tests/requirements.txt'
35+
- 'tests/unit'
36+
- 'tests/sanity/ignore-*'
37+
- 'venv*'
38+
39+
jobs:
40+
ansible-sanity:
41+
runs-on: ubuntu-latest
42+
env:
43+
branch: ${{ github.event.pull_request.head.ref }}
44+
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v4
48+
49+
- name: Set up Python
50+
uses: actions/setup-python@v5
51+
with:
52+
python-version: 3.11
53+
54+
- name: Set up venv
55+
run: |
56+
python -m pip install --upgrade pip
57+
pip install virtualenv
58+
mkdir venv
59+
virtualenv venv/venv-2.16
60+
61+
- name: Install dependencies
62+
run: |
63+
source venv/venv-2.16/bin/activate
64+
python -m pip install --upgrade pip
65+
pip install ansible
66+
67+
- name: Run ac-sanity
68+
run: |
69+
source venv/venv-2.16/bin/activate
70+
./ac --ac-build
71+
./ac --ac-sanity

0 commit comments

Comments
 (0)