diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml deleted file mode 100644 index 6f1bdc1..0000000 --- a/.github/workflows/ansible-test.yml +++ /dev/null @@ -1,208 +0,0 @@ -name: CI -on: - # Run CI against all pushes (direct commits, also merged PRs), Pull Requests - push: - branches: - - main - - stable-* - pull_request: - # Run CI once per day (at 05:15 UTC) - schedule: - - cron: '15 5 * * *' - -jobs: - -### -# Sanity tests (REQUIRED) -# -# https://docs.ansible.com/ansible/latest/dev_guide/testing_sanity.html - - sanity: - name: Sanity (Ⓐ${{ matrix.ansible }}) - strategy: - matrix: - ansible: - # It's important that Sanity is tested against all stable-X.Y branches - # Testing against `devel` may fail as new tests are added. - - stable-2.9 - - stable-2.10 - - stable-2.11 - - stable-2.12 - runs-on: ubuntu-20.04 - steps: - - # ansible-test requires the collection to be in a directory in the form - # .../ansible_collections/community/routeros/ - - - name: Check out code - uses: actions/checkout@v3 - with: - path: ansible_collections/community/routeros - - - name: Set up Python - uses: actions/setup-python@v3 - with: - # it is just required to run that once as "ansible-test sanity" in the docker image - # will run on all python versions it supports. - python-version: '3.10' - - # Install the head of the given branch (devel, stable-2.10) - - name: Install ansible-base (${{ matrix.ansible }}) - run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check - - - name: Install collection dependencies - run: git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.netcommon.git ansible_collections/ansible/netcommon - # NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429) - # run: ansible-galaxy collection install ansible.netcommon -p . - - # run ansible-test sanity inside of Docker. - # The docker container has all the pinned dependencies that are required - # and all python versions ansible supports. - - name: Run sanity tests - run: ansible-test sanity --docker -v --color --coverage - working-directory: ./ansible_collections/community/routeros - - # ansible-test support producing code coverage date - - name: Generate coverage report - run: ansible-test coverage xml -v --requirements --group-by command --group-by version - working-directory: ./ansible_collections/community/routeros - - # See the reports at https://codecov.io/gh/ansible_collections/ansible-collections/community.routeros - - uses: codecov/codecov-action@v3 - with: - fail_ci_if_error: false - -### -# Unit tests (OPTIONAL) -# -# https://docs.ansible.com/ansible/latest/dev_guide/testing_units.html - - units: - runs-on: ubuntu-20.04 - name: Units (Ⓐ${{ matrix.ansible }}) - strategy: - # As soon as the first unit test fails, cancel the others to free up the CI queue - fail-fast: true - matrix: - ansible: - - stable-2.9 - - stable-2.10 - - stable-2.11 - - stable-2.12 - - steps: - - name: Check out code - uses: actions/checkout@v3 - 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@v3 - with: - python-version: '3.10' - - - name: Install ansible-base (${{ matrix.ansible }}) - run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check - - - name: Install collection dependencies - run: git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.netcommon.git ansible_collections/ansible/netcommon - # NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429) - # run: ansible-galaxy collection install ansible.netcommon -p . - - # Run the unit tests - - name: Run unit tests for all Python versions - run: ansible-test units -v --color --docker --coverage - working-directory: ./ansible_collections/community/routeros - - # ansible-test support producing code coverage date - - name: Generate coverage report - run: ansible-test coverage xml -v --requirements --group-by command --group-by version - working-directory: ./ansible_collections/community/routeros - - # See the reports at https://codecov.io/gh/ansible_collections/ansible-collections/community.routeros - - uses: codecov/codecov-action@v3 - with: - fail_ci_if_error: false - -### -# Integration tests (RECOMMENDED) -# -# https://docs.ansible.com/ansible/latest/dev_guide/testing_integration.html - - -# If the application you are testing is available as a docker container and you want to test -# multiple versions see the following for an example: -# https://github.com/ansible-collections/community.zabbix/tree/master/.github/workflows - -# integration: -# runs-on: ubuntu-20.04 -# name: I (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }}}) -# strategy: -# fail-fast: false -# matrix: -# ansible: -# - stable-2.9 -# - stable-2.10 -# - stable-2.11 -# - stable-2.12 -# python: -# - 2.6 -# - 2.7 -# - 3.5 -# - 3.6 -# - 3.7 -# - 3.8 -# - 3.9 -# - "3.10" -# exclude: -# - ansible: stable-2.9 -# python: 3.9 -# - ansible: stable-2.9 -# python: "3.10" -# - ansible: stable-2.10 -# python: "3.10" -# - ansible: stable-2.11 -# python: "3.10" -# -# steps: -# - name: Check out code -# uses: actions/checkout@v3 -# with: -# path: ansible_collections/community/routeros -# -# - name: Set up Python -# uses: actions/setup-python@v3 -# with: -# # it is just required to run that once as "ansible-test integration" in the docker image -# # will run on all python versions it supports. -# python-version: '3.10' -# -# - name: Install ansible-core (${{ matrix.ansible }}) -# run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check -# -# - name: Install collection dependencies -# run: git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.netcommon.git ansible_collections/ansible/netcommon -# # NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429) -# # run: ansible-galaxy collection install ansible.netcommon -p . -# -# # Run the integration tests -# - name: Run integration test -# run: ansible-test integration -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker --coverage -# working-directory: ./ansible_collections/community/routeros -# -# # ansible-test support producing code coverage date -# - name: Generate coverage report -# run: ansible-test coverage xml -v --requirements --group-by command --group-by version -# working-directory: ./ansible_collections/community/routeros -# -# # See the reports at https://codecov.io/gh/ansible-collections/community.routeros -# - uses: codecov/codecov-action@v3 -# with: -# fail_ci_if_error: false diff --git a/.github/workflows/extra-tests.yml b/.github/workflows/extra-tests.yml deleted file mode 100644 index 564b07e..0000000 --- a/.github/workflows/extra-tests.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: extra-tests -on: - # Run CI against all pushes (direct commits, also merged PRs), Pull Requests - push: - branches: - - main - - stable-* - pull_request: - # Run CI once per day (at 05:15 UTC) - # This ensures that even if there haven't been commits that we are still testing against latest version of ansible-test for each ansible-base version - schedule: - - cron: '15 5 * * *' -env: - NAMESPACE: community - COLLECTION_NAME: routeros - -jobs: - extra-sanity: - name: Extra Sanity - runs-on: ubuntu-latest - steps: - - - name: Check out code - uses: actions/checkout@v3 - with: - path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} - - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.10' - - - name: Install ansible-core - run: pip install https://github.com/ansible/ansible/archive/stable-2.12.tar.gz --disable-pip-version-check - - - name: Install collection dependencies - run: | - git clone --depth=1 --single-branch https://github.com/ansible-collections/community.internal_test_tools.git ./ansible_collections/community/internal_test_tools - git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.netcommon.git ./ansible_collections/ansible/netcommon - git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.utils.git ./ansible_collections/ansible/utils - # NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429) - # run: ansible-galaxy collection install community.internal_test_tools ansible.netcommon -p . - - - name: Run sanity tests - run: ../../community/internal_test_tools/tools/run.py --color - working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} diff --git a/.github/workflows/import-galaxy.yml b/.github/workflows/import-galaxy.yml deleted file mode 100644 index 561e61c..0000000 --- a/.github/workflows/import-galaxy.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: import-galaxy -'on': - # Run CI against all pushes (direct commits, also merged PRs) to main, and all Pull Requests - push: - branches: - - main - - stable-* - pull_request: - -jobs: - import-galaxy: - permissions: - contents: read - name: Test to import built collection artifact with Galaxy importer - uses: ansible-community/github-action-test-galaxy-import/.github/workflows/test-galaxy-import.yml@main - with: - build-python-version: '3.10' - ansible-core-version: stable-2.12 diff --git a/README.md b/README.md index cac6cdb..aa9fc70 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Provides modules for [Ansible](https://www.ansible.com/community) to manage [Mik You can find [documentation for the modules and plugins in this collection here](https://docs.ansible.com/ansible/devel/collections/community/routeros/). +**COMMUNITY.ROUTEROS 1.x.y IS END OF LIFE. UPGRADE TO COMMUNITY.ROUTEROS 2.x.y!** + ## Tested with Ansible Tested with the current Ansible 2.9, ansible-base 2.10, ansible-core 2.11 and ansible-core 2.12 releases. Ansible versions before 2.9.10 are not supported.