Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenramoorthy authored Oct 11, 2023
1 parent abf06dd commit 0e6dd9b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,14 @@ jobs:
name: collection
path: .cache/collection-tarballs

- name: Create ansible.cfg file
run: |
echo "[galaxy]" > ansible.cfg
echo "server = https://old-galaxy.ansible.com/" >> ansible.cfg
cat ansible.cfg
- name: Install the collection tarball
run: ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz --no-cache
run: ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz

- name: Run sanity tests
run: ansible-test sanity --docker --python ${{matrix.python}} -v --color --truncate 0
Expand Down Expand Up @@ -108,8 +114,14 @@ jobs:
name: collection
path: .cache/collection-tarballs

- name: Create ansible.cfg file
run: |
echo "[galaxy]" > ansible.cfg
echo "server = https://old-galaxy.ansible.com/" >> ansible.cfg
cat ansible.cfg
- name: Install the collection tarball
run: ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz --no-cache
run: ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz

- name: Run DCNM Unit tests
run: coverage run --source=. -m pytest tests/unit/modules/dcnm/. -vvvv
Expand Down

0 comments on commit 0e6dd9b

Please sign in to comment.