From bc1acf9a81b04991c3f91096812df7f30ad784f9 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Sun, 6 Feb 2022 13:46:14 -0500 Subject: [PATCH 1/2] Disable all continuous integration --- .circleci/config.yml | 134 ------------------ .github/workflows/ci.yml | 46 ------ .github/workflows/codespell.yml | 18 --- .../update-slicer-certificate-bundle.yml | 82 ----------- .travis.yml | 57 -------- appveyor.yml | 75 ---------- 6 files changed, 412 deletions(-) delete mode 100644 .circleci/config.yml delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/codespell.yml delete mode 100644 .github/workflows/update-slicer-certificate-bundle.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 76436fc..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,134 +0,0 @@ -version: 2 - -references: - - ci_steps: &ci_steps - working_directory: /work - steps: - - checkout - - run: - name: Run CI - command: | - export MANYLINUX_PYTHON=$(echo ${CIRCLE_JOB} | cut -d"_" -f2) - echo "MANYLINUX_PYTHON [${MANYLINUX_PYTHON}]" - /opt/python/${MANYLINUX_PYTHON}/bin/pip install scikit-ci - /opt/python/${MANYLINUX_PYTHON}/bin/ci - - run: - name: install "ctest_junit_formatter" prerequisites - command: | - export MANYLINUX_PYTHON=$(echo ${CIRCLE_JOB} | cut -d"_" -f2) - echo "MANYLINUX_PYTHON [${MANYLINUX_PYTHON}]" - # - export PATH=/opt/python/${MANYLINUX_PYTHON}/bin:${PATH} - git clone git://github.com/scikit-build/scikit-ci-addons -b master - pip install -r ./scikit-ci-addons/requirements.txt - pip install ./scikit-ci-addons - pip install lxml # Required by ctest_junit_formatter - - run: - name: run "ctest_junit_formatter" - command: | - export MANYLINUX_PYTHON=$(echo ${CIRCLE_JOB} | cut -d"_" -f2) - echo "MANYLINUX_PYTHON [${MANYLINUX_PYTHON}]" - # - export PATH=/opt/python/${MANYLINUX_PYTHON}/bin:${PATH} - mkdir -p ~/ctest-reports - (cd case0; ci_addons ctest_junit_formatter $(pwd) > ~/ctest-reports/JUnit-${CIRCLE_NODE_INDEX}.xml) - (cd case1; ci_addons ctest_junit_formatter $(pwd) > ~/ctest-reports/JUnit-1.xml) - - store_test_results: - path: ~/ctest-reports - - - persist_to_workspace: - root: ./ - paths: - - dist - - x64_build_job: &x64_build_job - docker: - - image: dockcross/manylinux2014-x64 - <<: *ci_steps - - build_job_filters: &build_job_filters - filters: - tags: - ignore: - - latest - - latest-tmp - -jobs: - - # x64 - manylinux-x64_cp37-cp37m: - <<: *x64_build_job - manylinux-x64_cp38-cp38: - <<: *x64_build_job - manylinux-x64_cp39-cp39_upload-sdist: - <<: *x64_build_job - - # x86 - # NA - - deploy-master: - docker: - - image: circleci/python:3.9.4-buster - steps: - - attach_workspace: - at: ./ - - run: - name: Deploy master - command: | - echo "Deploy master (not implemented)" - - deploy-release: - docker: - - image: circleci/python:3.9.4-buster - steps: - - attach_workspace: - at: ./ - - run: - name: Deploy release - command: | - echo "Deploy release" - python -m venv ../venv - . ../venv/bin/activate - pip install twine - ls dist - twine upload -u $PYPI_USER -p $PYPI_PASSWORD --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* - -workflows: - version: 2 - build-test-deploy: - jobs: - # x64 - - manylinux-x64_cp37-cp37m: - <<: *build_job_filters - - manylinux-x64_cp38-cp38: - <<: *build_job_filters - - manylinux-x64_cp39-cp39_upload-sdist: - <<: *build_job_filters - # x86 - # NA - - - deploy-master: - requires: - # x64 - - manylinux-x64_cp37-cp37m - - manylinux-x64_cp38-cp38 - - manylinux-x64_cp39-cp39_upload-sdist - # x86 - # NA - filters: - branches: - only: master - - deploy-release: - requires: - # x64 - - manylinux-x64_cp37-cp37m - - manylinux-x64_cp38-cp38 - - manylinux-x64_cp39-cp39_upload-sdist - # x86 - # NA - filters: - tags: - only: /^v[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$/ - branches: - ignore: /.*/ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 58996d6..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Slicer CI - -on: - # Triggers the workflow on push or pull request events - push: - branches: - - "*" - paths-ignore: - - "**.md" - pull_request: - branches: - - "*" - paths-ignore: - - "**.md" - # Allows running this workflow manually from the Actions tab - workflow_dispatch: - - -jobs: - build-slicer: - name: Build Slicer - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: 'Slicer Build' - id: slicer-build - uses: ./.github/actions/slicer-build - - - name: 'Upload Slicer package' - run: | - echo "RUNNER_TEMP: ${{ runner.temp }}" - echo "RUNNER_TEMP: ${{ env.RUNNER_TEMP }}" - echo "RUNNER_TEMP: $RUNNER_TEMP" - echo "GITHUB_WORKSPACE: ${{ github.workspace }}" - echo "package: ${{ steps.slicer-build.outputs.package }}" - echo "${{ github.workspace }}/${{ steps.slicer-build.outputs.package }}" - - - - name: 'Upload Slicer package' - uses: actions/upload-artifact@v2 - with: - name: slicer-package - path: ${{ github.workspace }}/${{ steps.slicer-build.outputs.package }} - retention-days: 1 diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml deleted file mode 100644 index edae8e1..0000000 --- a/.github/workflows/codespell.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: codespell - -on: - pull_request: - push: - branches: - - master - - main - - v* - -jobs: - codespell: - name: Check for spelling errors - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Do step - run: echo "Do step" diff --git a/.github/workflows/update-slicer-certificate-bundle.yml b/.github/workflows/update-slicer-certificate-bundle.yml deleted file mode 100644 index 116512a..0000000 --- a/.github/workflows/update-slicer-certificate-bundle.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Update Slicer.crt certificate bundle - -on: - schedule: - # Every tuesday at 11.30am UTC (7.30am ET) - - cron: "30 11 * * 2" - workflow_dispatch: - -jobs: - update-slicer-certificate-bundle: - name: Update Slicer.crt certificate bundle - runs-on: ubuntu-latest - env: - CERTDATA_OWNER: mozilla - CERTDATA_REPO: gecko-dev - CERTDATA_PATH: security/nss/lib/ckfw/builtins/certdata.txt - steps: - - uses: actions/checkout@v2 - - - name: Get sha and cannonical download url for latest version of certdata.txt file - id: latest_certdata - run: | - sha=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/${{ env.CERTDATA_OWNER }}/${{ env.CERTDATA_REPO }}/commits?path=${{ env.CERTDATA_PATH }}&sha=master&per_page=1" | jq ".[0] | .sha" -r) - echo "::set-output name=sha::${sha}" - download_url="https://github.com/${{ env.CERTDATA_OWNER }}/${{ env.CERTDATA_REPO }}/blob/${sha}/${{ env.CERTDATA_PATH }}?raw=true" - echo "::set-output name=download_url::${download_url}" - - - name: Download certdata.txt from https://github.com/mozilla/gecko-dev - run: | - cd Base/QTCore/Resources/Certs && - curl -L# -o certdata.txt ${{ steps.latest_certdata.outputs.download_url }} - - - name: Generate Slicer.crt - run: | - cd Base/QTCore/Resources/Certs && - ./make-ca.sh - - - name: Cleanup - run: | - cd Base/QTCore/Resources/Certs && - rm certdata.txt - - - name: Get SHA of the branch that triggered the workflow run - id: head_branch - run: | - sha=$(git rev-parse ${{ github.ref }}) - echo "::set-output name=sha::${sha}" - - - name: Create Pull Request - id: cpr - uses: peter-evans/create-pull-request@v3 - with: - token: ${{ secrets.CI_SANDBOX_CREATE_PULL_REQUEST_GITHUB_TOKEN }} - commit-message: | - ENH: Update Slicer.crt CA bundle - - This commit updates Slicer.crt certificate bundle with [make-ca.sh][1] script using the - content of [certdata][2] associated with ${{ env.CERTDATA_OWNER }}/${{ env.CERTDATA_REPO }}@${{ steps.latest_certdata.outputs.sha }}, - - It was auto-generated by the [update-slicer-certificate-bundle][3] GitHub action workflow. - - [1]: https://github.com/${{ github.repository }}/blob/${{ steps.head_branch.outputs.sha }}/Base/QTCore/Resources/Certs/make-ca.sh - [2]: ${{ steps.latest_certdata.outputs.download_url }} - [3]: https://github.com/${{ github.repository }}/blob/${{ steps.head_branch.outputs.sha }}/.github/workflows/update-slicer-certificate-bundle.yml - committer: Slicer Bot - author: Slicer Bot - signoff: false - branch: slicerbot/update-slicer-certificate-bundle - delete-branch: true - title: "Update Slicer.crt CA bundle" - body: | - This pull-request was auto-generated by the [update-slicer-certificate-bundle][1] GitHub action workflow. - - [1]: https://github.com/${{ github.repository }}/blob/${{ steps.head_branch.outputs.sha }}/.github/workflows/update-slicer-certificate-bundle.yml - draft: false - - - name: Check outputs - run: | - echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" - diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e5a0721..0000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -branches: - only: - - master - - /^v[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$/ - -language: python - -matrix: - include: - - os: osx - language: generic - env: - - PYTHON_VERSION=3.7.0 - -cache: - directories: - - $HOME/.pyenv/versions/3.7.0 - -before_install: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir $HOME/bin; ln -s $(which pip2) $HOME/bin/pip; ln -s $(which python2) $HOME/bin/python; fi - - python -m pip install --disable-pip-version-check --upgrade pip - - pip install -U scikit-ci scikit-ci-addons - - ci_addons --install ../addons - -install: - - ci install - -script: - - ci test - -after_success: - - ci after_test - -deploy: - - provider: script - script: pwd && ls dist;echo "deploy-release" && ~/.pyenv/versions/${PYTHON_VERSION}/bin/twine upload -u $PYPI_USER -p $PYPI_PASSWORD --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* - skip_cleanup: true - on: - repo: ${TRAVIS_REPO_SLUG} - tags: true - - provider: script - script: pwd && ls dist && echo "deployment-nightly" - skip_cleanup: true - on: - repo: ${TRAVIS_REPO_SLUG} - branch: master - -notifications: - email: false - -env: - global: - # PYPI_USER - - secure: "J1YOYfqNC3e2g2KJxQb4zK4iBSERuSPS+VBHnBuDbxy+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Iy3FccDqDvK7tI6qkB5LtRisXcrWsDcqwgZ5vmnXEHLAAks2BqIpeqvvRT1adBt5flzst21+HLdhO6pkFXgCC7yJ30H4yndSE3qDVOaxmTLINuRn3yWxdk6S16Fsx/jsO0AbPIUAqL+KYJR3w2Mpe+WxpUeCjDjEtSnhEre3z1S5iKxSffAY7jPkQ7zSPY+Lxi76wv0i3je+RdJTrpgFBpH++Ql93/lmObDQj3LcfytdOk+81LTgAEdaQmb6w=" diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index e9ae49a..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,75 +0,0 @@ -branches: - only: - - master - - /^v[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$/ - -version: "0.0.1.{build}" - - -environment: - matrix: - - - PYTHON_DIR: "C:\\Python27" - PYTHON_VERSION: "2.7.x" - PYTHON_ARCH: "32" - BLOCK: "0" - - - PYTHON_DIR: "C:\\Python36-x64" - PYTHON_VERSION: "3.6.x" - PYTHON_ARCH: "64" - BLOCK: "0" - - PYPI_USER: - secure: UGVCrlMzqZYEKC4ukxwT9g== - PYPI_PASSWORD: - secure: meCzpEOhlwp5AZazjODrkVU+u9xn4uvGKGfwEMsncqM= - -init: - - python -m pip install -U scikit-ci scikit-ci-addons - - python -m ci_addons --install ../addons - -install: - - python -m ci install - -build_script: - - python -m ci build - -test_script: - - python -m ci test - -after_test: - - python -m ci after_test - -on_finish: - - ps: ../addons/appveyor/enable-worker-remote-access.ps1 -check_for_block - - -deploy_script: - - ps: | - if ($env:appveyor_repo_tag -eq $true -and $env:appveyor_repo_tag_name –match "^v[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$") { - Write-Host "deploy release" - $env:PATH="$env:PYTHON_DIR/Scripts/;$env:PATH" - twine upload -u $env:PYPI_USER -p $env:PYPI_PASSWORD --repository-url https://test.pypi.org/legacy/ --skip-existing dist/* - } elseif ($env:appveyor_repo_branch -eq "master") { - Write-Host "deploy master" - dir dist - } else { - Write-Host "deploy nothing" - } - -artifacts: - # Archive the generated packages in the ci.appveyor.com build report. - - path: dist\* - -matrix: - fast_finish: false - -shallow_clone: false - - -notifications: - - provider: Email - on_build_success: false - on_build_failure: false - on_build_status_changed: false - From 6f68004ea6b831b01fb42b3f62a3bf34d890e7a7 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Sun, 6 Feb 2022 13:37:22 -0500 Subject: [PATCH 2/2] github-workflow: Test commit-status-updater-example8 --- .../commit-status-updater-example8.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/commit-status-updater-example8.yml diff --git a/.github/workflows/commit-status-updater-example8.yml b/.github/workflows/commit-status-updater-example8.yml new file mode 100644 index 0000000..e8456ba --- /dev/null +++ b/.github/workflows/commit-status-updater-example8.yml @@ -0,0 +1,17 @@ +name: commit-status-updater-example8 + +on: [pull_request] + +jobs: + # Action no comments, set commit to "error" status and set url, description and specific name + example8: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ouzi-dev/commit-status-updater@v1.1.2 + with: + status: "error" + url: http://myurl.io/ + description: "this is my status check" + name: "name of my status check" +