From 9e5592aff5af239fc95905cb309d88b95464529d Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:12:31 +0100 Subject: [PATCH] ci: skipping students version if on remote (#3668) * ci: skipping students version if on remote * chore: adding changelog file 3668.maintenance.md [dependabot-skip] --------- Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> --- .ci/build_matrix.sh | 10 ++++++++++ .github/workflows/ci.yml | 1 + doc/changelog.d/3668.maintenance.md | 1 + 3 files changed, 12 insertions(+) create mode 100644 doc/changelog.d/3668.maintenance.md diff --git a/.ci/build_matrix.sh b/.ci/build_matrix.sh index 7f90c11b2a..506b8c6c30 100755 --- a/.ci/build_matrix.sh +++ b/.ci/build_matrix.sh @@ -32,6 +32,9 @@ LATEST=3 # for 'latest-ubuntu' and 'latest-ubuntu-student' # Run only ubuntu jobs ONLY_UBUNTU="${ONLY_UBUNTU:-false}" +# On remote +ON_REMOTE="${ON_REMOTE:-false}" + # Do not process more than the $AUTH_USER_LIMIT_VERSIONS versions in above list AUTH_USER_LIMIT_VERSIONS="${AUTH_USER_LIMIT_VERSIONS:-2}" AUTH_USER_LIMIT=$((LATEST+AUTH_USER_LIMIT_VERSIONS*3)) @@ -97,6 +100,13 @@ for version in "${versions[@]}"; do continue fi + # Skipping if on remote and on student + if [[ "$ON_STUDENT" == "true" && "$ON_REMOTE" == "true" ]]; then + echo "Skipping student versions when running on remote" + echo "" + continue + fi + # Skipping student versions on auth_user # if [[ "$auth_user" == "true" && "$ON_STUDENT" == "true" ]]; then # echo "Skipping student versions when user is authenticated" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de7f80d324..019e6138b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -396,6 +396,7 @@ jobs: env: extended_testing: ${{ github.event_name == 'schedule' || ( github.event_name == 'workflow_dispatch' && inputs.run_all_tests ) || ( github.event_name == 'push' && contains(github.ref, 'refs/tags') ) }} auth_user: ${{ steps.is_organization_member.outputs.isTeamMember == 'true' || github.actor == 'dependabot[bot]' }} + ON_REMOTE: true run: .ci/build_matrix.sh build-test-remote: diff --git a/doc/changelog.d/3668.maintenance.md b/doc/changelog.d/3668.maintenance.md new file mode 100644 index 0000000000..b89ce0b201 --- /dev/null +++ b/doc/changelog.d/3668.maintenance.md @@ -0,0 +1 @@ +ci: skipping students version if on remote \ No newline at end of file