-
Notifications
You must be signed in to change notification settings - Fork 61
63 lines (59 loc) · 2.14 KB
/
pull-request-releases.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: "Pre-release validation"
on:
pull_request:
branches:
- releases/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
ansible_test:
name: Run ansible-test validation
runs-on: ubuntu-20.04]
if: needs.cloudvision.status != 'failed' && needs.molecule_eos_designs.status != 'failed' && needs.file-changes.outputs.plugins == 'true'
strategy:
fail-fast: true
matrix:
python_version: [ 3.8 ]
steps:
- name: 'set environment variables'
run: |
echo "PY_COLORS=1" >> $GITHUB_ENV
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- name: 'Install Python requirements'
run: make install-requirements
- name: 'ansible-test linting'
run: |
cd ansible_collections/arista/avd/
ansible-test sanity -v --requirements --docker --skip-test yamllint --exclude docs/
# galaxy_importer:
# name: Test galaxy-importer
# runs-on: ubuntu-latest
# container: avdteam/base:3.8-v2.0
# needs: [ molecule_eos_designs ]
# if: needs.cloudvision.status != 'failed' && needs.molecule_eos_designs.status != 'failed' && needs.file-changes.outputs.plugins == 'true'
# env:
# PY_COLORS: 1 # allows molecule colors to be passed to GitHub Actions
# ANSIBLE_FORCE_COLOR: 1 # allows ansible colors to be passed to GitHub Actions
# steps:
# - name: 'set environment variables'
# run: |
# echo "PY_COLORS=1" >> $GITHUB_ENV
# echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
# - uses: actions/checkout@v2
# - name: install requirements
# run: make install-requirements
# - name: 'build ansible package'
# run: make collection-build
# - name: 'run ansible-importer checks'
# run: python -m galaxy_importer.main *.tar.gz
# - uses: actions/upload-artifact@v2
# with:
# name: importer-logs
# path: ./importer_result.json