Skip to content

Commit

Permalink
ci: skipping students version if on remote (#3668)
Browse files Browse the repository at this point in the history
* ci: skipping students version if on remote

* chore: adding changelog file 3668.maintenance.md [dependabot-skip]

---------

Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
germa89 and pyansys-ci-bot authored Jan 16, 2025
1 parent 20f82d1 commit 9e5592a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .ci/build_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3668.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: skipping students version if on remote

0 comments on commit 9e5592a

Please sign in to comment.