Enable periodic test runs via GHA (#261)

* cron job and test req

* revert check
pull/263/head
Sagar Paul 2023-05-11 18:23:25 +05:30 committed by GitHub
parent c43ab54b5f
commit 4faba3e08a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 10 deletions

View File

@ -1,13 +1,15 @@
name: Test collection
concurrency:
group: ${{ github.head_ref }}
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
on: # yamllint disable-line rule:truthy
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
changelog:
@ -20,7 +22,7 @@ jobs:
uses: ansible-network/github_actions/.github/workflows/unit_galaxy.yml@main
all_green:
if: ${{ always() }}
if: ${{ always() && (github.event_name != 'schedule') }}
needs:
- changelog
- integration

View File

@ -1,10 +1,15 @@
black==22.3.0 ; python_version > '3.5'
coverage==4.5.4
# For ansible-tox-linters
black==23.3.0 ; python_version >= '3.7'
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
# 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