parent
c43ab54b5f
commit
4faba3e08a
|
@ -1,13 +1,15 @@
|
||||||
name: Test collection
|
name: Test collection
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.head_ref }}
|
group: ${{ github.head_ref || github.run_id }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
on:
|
on: # yamllint disable-line rule:truthy
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changelog:
|
changelog:
|
||||||
|
@ -20,7 +22,7 @@ jobs:
|
||||||
uses: ansible-network/github_actions/.github/workflows/unit_galaxy.yml@main
|
uses: ansible-network/github_actions/.github/workflows/unit_galaxy.yml@main
|
||||||
|
|
||||||
all_green:
|
all_green:
|
||||||
if: ${{ always() }}
|
if: ${{ always() && (github.event_name != 'schedule') }}
|
||||||
needs:
|
needs:
|
||||||
- changelog
|
- changelog
|
||||||
- integration
|
- integration
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
black==22.3.0 ; python_version > '3.5'
|
# For ansible-tox-linters
|
||||||
coverage==4.5.4
|
black==23.3.0 ; python_version >= '3.7'
|
||||||
flake8
|
flake8
|
||||||
git+https://github.com/ansible-network/pytest-ansible-network-integration.git
|
|
||||||
git+https://github.com/ansible-community/pytest-ansible-units.git
|
|
||||||
ipaddress ; python_version < '3.0'
|
|
||||||
mock ; python_version < '3.5'
|
|
||||||
pytest-xdist
|
|
||||||
yamllint
|
yamllint
|
||||||
|
|
||||||
|
# Unit test runner
|
||||||
|
pytest-ansible ; python_version >= '3.9'
|
||||||
|
git+https://github.com/ansible-community/pytest-ansible-units.git ; python_version < '3.9'
|
||||||
|
pytest-xdist
|
||||||
|
|
||||||
|
# For integration tests
|
||||||
|
pexpect
|
||||||
|
git+https://github.com/ansible-network/pytest-ansible-network-integration.git
|
||||||
|
ipaddress ; python_version < '3.0'
|
||||||
netaddr
|
netaddr
|
||||||
|
|
Loading…
Reference in New Issue