File tree Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments