Restrict librouteros for Ansible 2.9 unit tests. (#57)

This commit is contained in:
Felix Fontein 2021-11-16 22:00:07 +01:00 committed by GitHub
parent 26b341f332
commit 4603507713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -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:

View file

@ -0,0 +1,4 @@
unittest2 ; python_version <= '2.6'
# requirements for api module
librouteros < 3.2.0 ; python_version >= '3.6'