Skip to content

Commit 9e5592a

Browse files
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 <[email protected]>
1 parent 20f82d1 commit 9e5592a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.ci/build_matrix.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ LATEST=3 # for 'latest-ubuntu' and 'latest-ubuntu-student'
3232
# Run only ubuntu jobs
3333
ONLY_UBUNTU="${ONLY_UBUNTU:-false}"
3434

35+
# On remote
36+
ON_REMOTE="${ON_REMOTE:-false}"
37+
3538
# Do not process more than the $AUTH_USER_LIMIT_VERSIONS versions in above list
3639
AUTH_USER_LIMIT_VERSIONS="${AUTH_USER_LIMIT_VERSIONS:-2}"
3740
AUTH_USER_LIMIT=$((LATEST+AUTH_USER_LIMIT_VERSIONS*3))
@@ -97,6 +100,13 @@ for version in "${versions[@]}"; do
97100
continue
98101
fi
99102

103+
# Skipping if on remote and on student
104+
if [[ "$ON_STUDENT" == "true" && "$ON_REMOTE" == "true" ]]; then
105+
echo "Skipping student versions when running on remote"
106+
echo ""
107+
continue
108+
fi
109+
100110
# Skipping student versions on auth_user
101111
# if [[ "$auth_user" == "true" && "$ON_STUDENT" == "true" ]]; then
102112
# echo "Skipping student versions when user is authenticated"

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ jobs:
396396
env:
397397
extended_testing: ${{ github.event_name == 'schedule' || ( github.event_name == 'workflow_dispatch' && inputs.run_all_tests ) || ( github.event_name == 'push' && contains(github.ref, 'refs/tags') ) }}
398398
auth_user: ${{ steps.is_organization_member.outputs.isTeamMember == 'true' || github.actor == 'dependabot[bot]' }}
399+
ON_REMOTE: true
399400
run: .ci/build_matrix.sh
400401

401402
build-test-remote:

doc/changelog.d/3668.maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ci: skipping students version if on remote

0 commit comments

Comments
 (0)