From d4f6c535724482e27d084fdabd0ba835c371d55a Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Sun, 8 Nov 2026 19:19:50 +0100 Subject: [PATCH] Remove stale steps and conditions from CI workflows - `conda-package.yml`: the upload job also allowed `release*` branches and tags, but the workflow triggers only on pushes to `master` and on PRs, so those branches never fire; the condition is now just a `master` push in `IntelPython/dpnp`. - `conda-package.yml`: the Array API job ran `sudo apt-get install jq`, but `jq` comes preinstalled on the runner image (`jq is already the newest version (1.8.1-4ubuntu2)` on `ubuntu-26.04`). It also ran "List installed packages" and "Smoke test" a second time after `pip install -r requirements.txt`, which adds only test plugins (hypothesis, ndindex, pytest-json-report). - `cron-run-tests.yaml`: the comment on the schedule was copied from the Scorecard workflow; this workflow tests the package of the latest tag nightly. - `build-sphinx.yml`: drop the "Dump GitHub context" debug step, which printed the whole event payload on every docs run. --- .github/workflows/build-sphinx.yml | 6 ------ .github/workflows/conda-package.yml | 17 ++--------------- .github/workflows/cron-run-tests.yaml | 3 +-- 3 files changed, 3 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-sphinx.yml b/.github/workflows/build-sphinx.yml index 11f3d6c74f2..912be6d0285 100644 --- a/.github/workflows/build-sphinx.yml +++ b/.github/workflows/build-sphinx.yml @@ -53,12 +53,6 @@ jobs: dpctl-pkg-txt: 'environments/dpctl_pkg.txt' steps: - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: | - echo "$GITHUB_CONTEXT" - - name: Free Disk Space (Ubuntu) uses: jlumbroso/free-disk-space@ceedf095f4ec1a097402bc6bd80831f2e1a6fde6 # v2.0.0 with: diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 4fc22b5b467..61410f9b3ec 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -670,9 +670,8 @@ jobs: upload-env-name: 'upload' python-label: ${{ endsWith(matrix.python_spec, 't') && format('{0}t', matrix.python) || matrix.python }} - if: | - (github.repository == 'IntelPython/dpnp') && - (github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')) + # Only master pushes upload: the workflow has no release branch or tag trigger + if: github.repository == 'IntelPython/dpnp' && github.ref == 'refs/heads/master' steps: - name: Checkout DPNP repo @@ -847,18 +846,6 @@ jobs: pip install -r requirements.txt working-directory: ${{ env.array-api-tests-path }} - - name: Install jq - run: | - sudo apt-get install jq - - - name: List installed packages - run: mamba list - - - name: Smoke test - run: | - python -c "import dpctl; dpctl.lsplatform()" - python -c "import dpnp; print(dpnp.__version__)" - - name: Run array API conformance tests run: | python -m pytest --json-report --json-report-file=${{ env.json-report-file }} --disable-deadline --skips-file ${{ env.array-api-skips-file }} array_api_tests || true diff --git a/.github/workflows/cron-run-tests.yaml b/.github/workflows/cron-run-tests.yaml index b832ebbec61..3b2e42aa73d 100644 --- a/.github/workflows/cron-run-tests.yaml +++ b/.github/workflows/cron-run-tests.yaml @@ -2,8 +2,7 @@ name: Run tests suite on: # To be able to be triggered manually workflow_dispatch: - # To guarantee Maintained check is occasionally updated. See - # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained + # Nightly test of the dpnp package of the latest tag schedule: - cron: '28 2 * * *'