Adding instructions for use_collection. #1334
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Crucible tests | |
on: [push, pull_request] | |
jobs: | |
run-tests: | |
name: Run tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.???') }} | |
- name: Install required dependencies | |
run: | | |
pip install ansible | |
pip install -r requirements.txt | |
ansible-galaxy collection install -r requirements.yml | |
- name: Run all tests using Ansible | |
run: ansible-playbook run_tests.yml | |
working-directory: ./tests |