From 8f44e6f25757d64cba5f06eb875f77ab0d6b0064 Mon Sep 17 00:00:00 2001 From: Nanda Date: Wed, 19 Feb 2025 10:19:53 +0530 Subject: [PATCH 1/8] ICNMLSALESSERVICESWDF2-3549-Move-DAR-SDK-from-Travis-CI-to-Github-actions --- .github/workflows/ci.yml | 139 +++++++++++++++++++++++++++++++++++++++ requirements-test.txt | 2 +- tox.ini | 2 +- 3 files changed, 141 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..60f104d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,139 @@ +name: CI Workflow +on: + push: + branches: + - main + tags: + - rel/** + pull_request: + branches: + - main + +permissions: read-all + +jobs: + lint: + name: Linting + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Cache pre-commit + uses: actions/cache@v4 + with: + path: ${{ runner.home }}/.cache/pre-commit + key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} + restore-keys: ${{ runner.os }}-pre-commit- + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.10.14' + + - name: Install dev dependencies + run: pip install -r requirements-dev.txt + + - name: Run pre-commit linting + run: pre-commit run --all-files + + system-tests: + name: System Tests + runs-on: windows-latest + needs: [tests,lint] + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/rel/')) + permissions: + contents: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.10.8' + + - name: Install test dependencies + run: | + pip install -r requirements-test.txt + pip install tox + + - name: Run system tests with tox + run: tox -e system_tests + env: + DAR_CLIENT_ID: ${{ secrets.DAR_CLIENT_ID }} + DAR_CLIENT_SECRET: ${{ secrets.DAR_CLIENT_SECRET }} + DAR_AUTH_URL: ${{ secrets.DAR_AUTH_URL }} + DAR_URL: ${{ secrets.DAR_URL }} + + - name: Create Github Release for Tag + if: startsWith(github.ref, 'refs/tags/rel/') + uses: softprops/action-gh-release@v2 + with: + body: "Tagging release ${{ github.ref }}" + # API key for a machine user specifically created for this task: + # https://github.com/dar-sdk-machine-user + token: ${{ secrets.API_KEY }} + files: system_test_results/traceability.html + + tests: + name: Tests on Linux, Windows and macOS environments + runs-on: ${{ matrix.os}} + strategy: + matrix: + include: + - python-version: '3.10' + toxenv: 'py310-cov' + os: ubuntu-latest + - python-version: '3.11' + toxenv: 'py311-cov' + os: ubuntu-latest + - python-version: 'pypy3.10' + toxenv: 'pypy3-cov' + os: ubuntu-latest + - python-version: '3.10.8' + toxenv: 'py310-cov' + os: windows-latest + - python-version: '3.10.8' + toxenv: 'py310-cov' + os: macos-13 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install test dependencies + run: | + pip install -r requirements-test.txt + pip install tox + - name: Run tests with tox + run: tox -e ${{ matrix.toxenv }} + env: + API_KEY: ${{ secrets.API_KEY }} + + deploy: + name: Deploy to PyPI + runs-on: ubuntu-latest + needs: [system-tests] + if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/rel/') + permissions: + contents: read + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Build distributions + run: python -m build --sdist --wheel + + - name: Deploy release to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 # Uses OIDC/Workload identities and doesn't require a token \ No newline at end of file diff --git a/requirements-test.txt b/requirements-test.txt index 9ac82aa..29a1cc8 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -3,7 +3,7 @@ # whitesource. # These dependencies are never shipped, but only used locally # on a developer's workstation or on Jenkins for development. -tox==3.23.1 +tox==3.25.1 # httpretty is also referenced in tox, but listed here to make it easier to run tests # standalone from the shell or IDE. httpretty==1.1.4 diff --git a/tox.ini b/tox.ini index 0d695b9..834ea24 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,7 @@ whitelist_externals = mkdir # Enable parallel execution setenv = COVERAGE_FILE = test_results/{envname}/unit_coverage/.coverage -passenv = DAR_* TRAVIS TRAVIS_* COVERALLS_* +passenv = DAR_* COVERALLS_* GITHUB_* deps = zipp<3.7.0 # for python 3.6 support From f1888d16650063a55f60b3e3dd53e2ace4f6ae57 Mon Sep 17 00:00:00 2001 From: Nanda Date: Wed, 19 Feb 2025 10:38:10 +0530 Subject: [PATCH 2/8] Renaming the token --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60f104d..fdd037e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: body: "Tagging release ${{ github.ref }}" # API key for a machine user specifically created for this task: # https://github.com/dar-sdk-machine-user - token: ${{ secrets.API_KEY }} + token: ${{ secrets.GITHUB_TOKEN }} files: system_test_results/traceability.html tests: @@ -113,7 +113,7 @@ jobs: - name: Run tests with tox run: tox -e ${{ matrix.toxenv }} env: - API_KEY: ${{ secrets.API_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} deploy: name: Deploy to PyPI From 840459b5fe45fd8dca931a3d108e209b99e4ab69 Mon Sep 17 00:00:00 2001 From: Nanda Date: Wed, 19 Feb 2025 10:43:41 +0530 Subject: [PATCH 3/8] Renaming token for system-tests --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fdd037e..bb903d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: body: "Tagging release ${{ github.ref }}" # API key for a machine user specifically created for this task: # https://github.com/dar-sdk-machine-user - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.API_KEY }} files: system_test_results/traceability.html tests: From 32c4500300ab6cf04cd04d3ff581dc15e088d1d0 Mon Sep 17 00:00:00 2001 From: Nanda Date: Wed, 19 Feb 2025 16:33:39 +0530 Subject: [PATCH 4/8] Adding command for upgrading coverage pytest-cov --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb903d5..aa2b466 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,7 @@ jobs: run: | pip install -r requirements-test.txt pip install tox + pip install --upgrade coverage pytest pytest-cov - name: Run system tests with tox run: tox -e system_tests From bcd615b679e3e39508b54ade296f30fa40ec9cee Mon Sep 17 00:00:00 2001 From: Nanda Date: Mon, 24 Feb 2025 11:05:58 +0530 Subject: [PATCH 5/8] Improving the workfile --- .github/workflows/ci.yml | 22 ++++------------------ requirements-test.txt | 1 + 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa2b466..114d04e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,13 +19,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Cache pre-commit - uses: actions/cache@v4 - with: - path: ${{ runner.home }}/.cache/pre-commit - key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} - restore-keys: ${{ runner.os }}-pre-commit- - - name: Setup Python uses: actions/setup-python@v5 with: @@ -54,10 +47,7 @@ jobs: python-version: '3.10.8' - name: Install test dependencies - run: | - pip install -r requirements-test.txt - pip install tox - pip install --upgrade coverage pytest pytest-cov + run: pip install -r requirements-test.txt - name: Run system tests with tox run: tox -e system_tests @@ -72,9 +62,6 @@ jobs: uses: softprops/action-gh-release@v2 with: body: "Tagging release ${{ github.ref }}" - # API key for a machine user specifically created for this task: - # https://github.com/dar-sdk-machine-user - token: ${{ secrets.API_KEY }} files: system_test_results/traceability.html tests: @@ -108,9 +95,8 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install test dependencies - run: | - pip install -r requirements-test.txt - pip install tox + run: pip install -r requirements-test.txt + - name: Run tests with tox run: tox -e ${{ matrix.toxenv }} env: @@ -134,7 +120,7 @@ jobs: python-version: '3.10' - name: Build distributions - run: python -m build --sdist --wheel + run: pipx run build --sdist --wheel - name: Deploy release to PyPI uses: pypa/gh-action-pypi-publish@release/v1 # Uses OIDC/Workload identities and doesn't require a token \ No newline at end of file diff --git a/requirements-test.txt b/requirements-test.txt index 29a1cc8..80d6505 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -7,3 +7,4 @@ tox==3.25.1 # httpretty is also referenced in tox, but listed here to make it easier to run tests # standalone from the shell or IDE. httpretty==1.1.4 +pytest-cov== \ No newline at end of file From 1148f3de88dc8c9207e606ae79c858cca2515f07 Mon Sep 17 00:00:00 2001 From: Nanda Date: Mon, 24 Feb 2025 11:08:55 +0530 Subject: [PATCH 6/8] Removing typo --- requirements-test.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/requirements-test.txt b/requirements-test.txt index 80d6505..d47be3b 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -6,5 +6,4 @@ tox==3.25.1 # httpretty is also referenced in tox, but listed here to make it easier to run tests # standalone from the shell or IDE. -httpretty==1.1.4 -pytest-cov== \ No newline at end of file +httpretty==1.1.4 \ No newline at end of file From 78a7c19f91adfc62b5a38bf9ca3d33f1b5306473 Mon Sep 17 00:00:00 2001 From: Nanda Date: Mon, 24 Feb 2025 11:23:48 +0530 Subject: [PATCH 7/8] Removing travis.yml --- .travis.yml | 146 ---------------------------------------------------- 1 file changed, 146 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 61f7202..0000000 --- a/.travis.yml +++ /dev/null @@ -1,146 +0,0 @@ -# Explore and validate the config here: -# https://config.travis-ci.com/explore - -cache: - directories: - - "$HOME/.cache/pre-commit" - -# For the conditionals below: the `branch` corresponds to the base branches: -# for PRs. See https://docs.travis-ci.com/user/conditions-v1 for details. - -# Only build on main OR for PRs. Otherwise, we will run the same tests twice: once -# for the PR, once for the branch. -# If your builds do not start when you expect them to start, go here to understand why: -# https://travis-ci.com/github/SAP/data-attribute-recommendation-python-sdk/requests -if: branch = main OR tag =~ ^rel/.*$ OR type != push - -os: linux -dist: jammy - -notifications: - email: - if: branch = main AND type != pull_request - on_failure: always - recipients: - # Michael - - secure: "r05MU3AGjL+KMQSy3s3PW2tm3qA/ElRKQalMuixr3a1EJr6ZOb+FV2jRWM25q/2x5U/yszigtAKDuuF/Y/gbpIp4UwfhF9iTi7INF05F32E2SZAjnxA7rWJU294CR51J9UOYCaYt0fWPEt0IZMXl5rp1ORarNgLB2m33ZZKVzTr2ArSVBh/TvduymK1nEwTuA148fPQXobMCM6NF5qyVmxaoRWVQPVqafpmjSum+1k5qcZVFOHrix9hKFgJNZ/BrQu3w7lpu1HWpVoSr8wf1ZOt5VIeNL8NZBNM6vIQxdlOWpm9/ooTW/oKCuYuKs4aLp/AwJsrwJdYAls7TobyRlUh0u7HXj5+S4+BadlxgpKLWEV7KEPYgpIFvHEv2rcQUFQY7K4j+9U7wr4uxqUUaSvykYlipu+50pJshZjxKjx6frRFojjeaJNGmsL6ekK5ADrEWvbdhsnMG5SMbbWKrX9TFHv/HOwZuCQMsX/Noqnicxy0jt0PxTNsSRmlbIhw4pCGqcQmOA3LPOz3s9YiZZLxR2KmhLITCTRJKVKUbo0f1ctEGf6bOa5da3CDVAIvNpUsIjg37wJGMh/rp3ZoCs4J+ecmulfHqKmcx2P6x2uBqgAaGh7CmL2rlOe5F4WBOJQUvej6KJzcbkI1D7zyKXLk2ogKmQKd4vKsw6vxVFu0=" - # Karthik - - secure: "OmT4gL0Z4GLC6tZNHQjJzfVQjFsBzWKp1oGnIzW0kClIUiq8gJU6i17M+pMsAondUOn7ALoFxfyFEdtwPfDgGt9pfoO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t6wvLhA+O5/bpAXDQVbJIa9ww3veDwFoD9pvtNfc0ocxBz+4C07zZ0kDxNgFHY+N5XY+k8cqoXKSYeMbKggxa6FnffVh2oBvlzOnBRZJOKJBTjPtF2qonzQjJyA5KtJQuQ9xO5a56xbyuNufsJT7vFNWrGzqw0YqWcQnMLWwerdHTKWu0ovaQd3mjtAbm1WvN33d1KPY3YFWoQU6YITwpCi4MjxsJVU=" - -stages: -- name: linting -- name: test -- name: "system tests" - if: type != pull_request AND (branch = main OR tag =~ ^rel/.*$) -# Note that deployment of the traceability report to github happens in the system -# tests stage above, with an additional condition to only execute on tag =~ ^rel/.*$. -# For technical reasons, the upload to pypi is a separate stage: the pypi upload does -# not work from a windows environment -- name: deploy - if: type != pull_request AND tag =~ ^rel/.*$ - -language: python - -install: - # Fix build on 3.7: https://github.com/pypa/setuptools/issues/3293 -- pip3 install 'setuptools==60.9.0;python_version=="3.8"' -- pip3 install -r requirements-test.txt -script: tox - -# When using travis encrypt to encrypt environment variables, remember to use single -# quotes and escape special characters (such as the ! in the clientid) -# https://docs.travis-ci.com/user/encryption-keys#note-on-escaping-certain-symbols - -env: - global: - # DAR_CLIENT_ID - - secure: "hJC4Vm6ZsJWzZPuthD5hi5eLZY+hUlawdbsyf/fIP0qruWK5EXhUWbP9hySHAgsdY6dwoR0KABe3Dwx5hrt0sBy9cRFgYAt5MR0IbTVBIPrArkmx0Y5ESq8M869qC/pGHcCDHjiAnbZxgO/84gGUAFmqW+KkdHDA6b+D0lXXOQ/bsnRlwJ2V2eA1jSdOX2nYvwOLhCa3j+rMI2+PzhnDtYbzF19W8v5Ob01qYJmMqEqbpgVHQEkUp4j2ICBzp7Ht/A4+kT0Gig/muC8Ax6O72zTVGFp1+migli9JgS7xz/BvnaFIoNq183zd/0AQRZqNChDoIMQvI9ZH/yH3/BvY9PY/bEsORVzLq7gf6SaMDByJiV/1C8wb7RuYM+QObRd/ZYgmO+WUewERZb1HP1zj5E+0OGdsEylxEvNPF9qrc2lR4d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I+lfUeUsTRUfCDXQSX3u0A5H9vtyvBcrbu662872XaBAlxuC+dXUeORNeWpJyg0stWFp5Wc0eCIIRKAxpzGmz5eeYEQRhJa31dPv1hK7I+VWCZhPnpb1jw/8LuKuMDWjHP8P/vJkYJx+BmDxDD3fuc9wU6MgUcXhdZoIyTba5gUC3/hYJ3TJO5Ya9R32kNCvf4s=" - -jobs: - include: - - stage: linting - python: '3.10' # only run once. - install: - - pip install -r requirements-dev.txt - script: - - pyenv global 3.10.14 - - pre-commit run --all-files - - stage: system tests - os: windows - language: shell # 'language: python' is an error on Travis CI Windows - before_install: - - choco install python --version 3.10.8 - - python -m pip install --upgrade pip - env: PATH=/c/Python310:/c/Python310/Scripts:$PATH - # use install: from global test stage, since system tests are - # also handled via tox - script: - - tox -e system_tests - deploy: - - provider: releases - edge: - branch: v1.10.16 - skip_cleanup: true - api_key: - # API key for a machine user specifically created for this task: - # https://github.com/dar-sdk-machine-user - secure: "sWh/OWOwLJkAtM4jMYE3KSM9US5zlzvTIgkkD239eY3LY6Ygh9Qu6Vrt/NPsRyvtBlXeaaDSDpKax7IOz5INHIwgWVFCWKD4bmKqxVsJRrjGIdNiyasGo/+N1X+LafFyVPyCvcXhYESb7aCwV6fxhdqUaqpxX87SsN64MyKy3aoqPqfohAVraMiL5YWMJsCXVwZQlK4W/5oiKHblSPy/GnWyPp/bmOaW5o85zK12aLLFo2CYBCDzrxiwHelnkeKfQ2bv6QVlzN5BYV21ah79XBQxBTf4nMVIkPGeCrmHbE41nJsWANnZwhpr+wJ4pZ90TIVAzo23p7/mnhyk4qoP6xOXemN4cyNa4J4421g8Mo2vcAztG5tOXvBXitXV37OydrSwaj9fzqIX73m5uXGindny61MpIGYvlNnjm75H7RtjHswuhLsnohjFgOEOBb0FTvAyz+Nt2kHoS02xamlgw5Ox5UDOMUY+INDp/WxmdMAVO5oiGtofTDcGOqPkZwUdVPxTIjSjmhhr7YGSWzlgCC75Cu8ifc5VEK7E5QOKqdSjj8R2HHnYv17KSjz36liEqy58V4h52/PiKkGq6S+RK5S5zihhjDdadlhzVuznWNtPkBqHLb117GD5hlkbZeglJ6EI7OkEEhWjl0S9Uc7xgCxA56JqYBGvpnXh5+zihB0=" - file: "system_test_results/traceability.html" - on: - tags: true - condition: $TRAVIS_TAG =~ ^rel/.*$ - - stage: test - name: "Python: 3.8 on Linux" - python: "3.8" - env: TOXENV=py38-cov - - stage: test - name: "Python: 3.9 on Linux" - python: "3.9" - env: TOXENV=py39-cov - - stage: test - name: "Python: 3.10 on Linux" - python: "3.10" - env: TOXENV=py310-cov - - stage: test - name: "Python: pypy3 on Linux" - python: "pypy3" - env: TOXENV=pypy3-cov - - stage: test - name: "Python: 3.8 on Windows" - # https://docs.travis-ci.com/user/languages/python/#running-python-tests-on-multiple-operating-systems - os: windows - language: shell # 'language: python' is an error on Travis CI Windows - before_install: - - choco install python --version 3.8.2 - - python -m pip install --upgrade pip - env: - - PATH=/c/Python38:/c/Python38/Scripts:$PATH - - TOXENV=py38-cov - - stage: test - name: "Python: 3.7.4 on macOS" - os: osx - osx_image: xcode11.4.1 # Python 3.7.4 running on macOS 10.15.4 - language: shell # 'language: python' is an error on Travis CI macOS - env: TOXENV=py37-cov - - stage: deploy - python: '3.8' # only run once - install: skip - script: skip - deploy: - - provider: pypi - username: __token__ - distributions: "sdist bdist_wheel" - password: - secure: "Yo1GgXnDX8br7Gwy7IbIbTowfbuATV8hwMoWeQEfXb/rkPxJuElbGDb6xEy19E3qojxMbeY2Lm5ahyRXBcQmekyzG4/xa4aLqxa08TEYbH/QQi3T7pFaIpBdPwHE3e3dsKZIFJwFwPymjIBZGC79CQkkD2g2+9GvSSJVkc5OMY/q1rVeWeKxbNmLiSu9kIIusBt1nkmrctLaNNN6fRvjII61bxkujpmBjWGZcNmcVHqxXqEVplfAOhBymalrhl6ABtlzKxLoBWJchqILLsVGoIhHIcUFkA7PyH90UfR5k2mWh7W5kh44vbY4F/OV2Dr875RNc/BYfnNe/RofxtIg1B9Z5JLVpGXsUhfWBqDcymym+ugTdYwEL2D4S2cWEK5sSur+cb/Ib/CAwYUaVf6eWJERzsPKs+5bfHHpkphDUIs7Rp6Mf5bkPgiUgbyWQ0Wdx5a7WXqwHCVpskCDreCF54X4FQuHeSxXrOVQ1GnknpTm5ZCJhuB5ged1a6BmhzF4LbhalHZjmYqy37j+jCLAa8QrpoUkhvPrSKyUQVHnj8P8yw2jydHDdyuWoibwL+rbrHHeX66QreV/utBODfbx2j3tMzkAU8QqKsmP9hWnHFx5Lz6Dl/m8MniKbs7B3vMG3MCJsPz2nawHC/wlDeRqTTARZ+Fpc7VHzj2/ra8Egos=" - on: - # Limitation on branches is done in the "stages" section, so if - # the stage is executed, we always want to deploy - all_branches: true From 504d65254fd1844dcad802c05f98a35d47288f42 Mon Sep 17 00:00:00 2001 From: Nanda Date: Tue, 25 Feb 2025 09:51:11 +0530 Subject: [PATCH 8/8] Removing python patch version --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 114d04e..0aa0b14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: '3.10.8' + python-version: '3.10' - name: Install test dependencies run: pip install -r requirements-test.txt @@ -79,10 +79,10 @@ jobs: - python-version: 'pypy3.10' toxenv: 'pypy3-cov' os: ubuntu-latest - - python-version: '3.10.8' + - python-version: '3.10' toxenv: 'py310-cov' os: windows-latest - - python-version: '3.10.8' + - python-version: '3.10' toxenv: 'py310-cov' os: macos-13 steps: