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

(cherry picked from commit 4603507713)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2021-11-17 06:50:02 +01:00 committed by GitHub
parent 8ee9e8b5ff
commit 508713fca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -83,6 +83,13 @@ jobs:
with: with:
path: ansible_collections/community/routeros 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 }} - name: Set up Python ${{ matrix.ansible }}
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:

View file

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