mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-07-31 16:24:41 +02:00
Restrict librouteros for Ansible 2.9 unit tests. (#57)
This commit is contained in:
parent
26b341f332
commit
4603507713
2 changed files with 11 additions and 0 deletions
7
.github/workflows/ansible-test.yml
vendored
7
.github/workflows/ansible-test.yml
vendored
|
@ -85,6 +85,13 @@ jobs:
|
|||
with:
|
||||
path: ansible_collections/community/routeros
|
||||
|
||||
- name: Overwrite unit test requirements (if applicable)
|
||||
run: |
|
||||
if [ -e tests/unit/requirements-${{ matrix.ansible }}.txt ]; then
|
||||
cp tests/unit/requirements-${{ matrix.ansible }}.txt tests/unit/requirements.txt
|
||||
fi
|
||||
working-directory: ./ansible_collections/community/routeros
|
||||
|
||||
- name: Set up Python ${{ matrix.ansible }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
|
|
4
tests/unit/requirements-stable-2.9.txt
Normal file
4
tests/unit/requirements-stable-2.9.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
unittest2 ; python_version <= '2.6'
|
||||
|
||||
# requirements for api module
|
||||
librouteros < 3.2.0 ; python_version >= '3.6'
|
Loading…
Add table
Add a link
Reference in a new issue