Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/delete_evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from synapseclient import Evaluation, Synapse

syn = Synapse()
syn.login()
syn.login(profile=None)

# Maximum number of concurrent deletion operations
MAX_CONCURRENT_DELETIONS = 5
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/delete_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from synapseclient import Synapse

syn = Synapse()
syn.login()
syn.login(profile=None)

# Maximum number of concurrent deletion operations
MAX_CONCURRENT_DELETIONS = 5
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/delete_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from synapseclient import Synapse

syn = Synapse()
syn.login()
syn.login(profile=None)

# Maximum number of concurrent team deletions
MAX_CONCURRENT_DELETIONS = 5
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/empty_trash.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from synapseclient import Synapse

syn = Synapse()
syn.login()
syn.login(profile=None)

# Maximum number of concurrent deletion operations
MAX_CONCURRENT_DELETIONS = 5
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,29 @@ jobs:
# keep versions consistent with the first and last from the strategy matrix
if: ${{ (contains(fromJSON('["3.9"]'), matrix.python) || contains(fromJSON('["3.13"]'), matrix.python)) && steps.secret-check.outputs.secrets_available == 'true'}}
run: |
# Set SYNAPSE_PROFILE based on OS and Python version
if [ "${{ startsWith(matrix.os, 'ubuntu') }}" == "true" ]; then
if [ "${{ matrix.python }}" == "3.9" ]; then
export SYNAPSE_PROFILE="TestUbuntuMinimumPython"
elif [ "${{ matrix.python }}" == "3.13" ]; then
export SYNAPSE_PROFILE="TestUbuntuMaximumPython"
fi
elif [ "${{ startsWith(matrix.os, 'windows') }}" == "true" ]; then
if [ "${{ matrix.python }}" == "3.9" ]; then
export SYNAPSE_PROFILE="TestWindowsMinimumPython"
elif [ "${{ matrix.python }}" == "3.13" ]; then
export SYNAPSE_PROFILE="TestWindowsMaximumPython"
fi
elif [ "${{ startsWith(matrix.os, 'macos') }}" == "true" ]; then
if [ "${{ matrix.python }}" == "3.9" ]; then
export SYNAPSE_PROFILE="TestMacosMinimumPython"
elif [ "${{ matrix.python }}" == "3.13" ]; then
export SYNAPSE_PROFILE="TestMacosMaximumPython"
fi
fi

echo "Using SYNAPSE_PROFILE: $SYNAPSE_PROFILE"

# decrypt the encrypted test synapse configuration
openssl aes-256-cbc -K ${{ secrets.encrypted_d17283647768_key }} -iv ${{ secrets.encrypted_d17283647768_iv }} -in test.synapseConfig.enc -out test.synapseConfig -d
mv test.synapseConfig ~/.synapseConfig
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/test-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ jobs:
permissions:
contents: read

strategy:
matrix:
synapse_profile:
- "TestUbuntuMinimumPython"
- "TestUbuntuMaximumPython"
- "TestWindowsMinimumPython"
- "TestWindowsMaximumPython"
- "TestMacosMinimumPython"
- "TestMacosMaximumPython"
- "" # Empty string for default profile (no SYNAPSE_PROFILE set)

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -67,17 +78,33 @@ jobs:
mv test.synapseConfig ~/.synapseConfig

- name: Run evaluation deletion script
shell: bash
run: |
if [ -n "${{ matrix.synapse_profile }}" ]; then
export SYNAPSE_PROFILE="${{ matrix.synapse_profile }}"
fi
python .github/scripts/delete_evaluations.py

- name: Run project deletion script
shell: bash
run: |
if [ -n "${{ matrix.synapse_profile }}" ]; then
export SYNAPSE_PROFILE="${{ matrix.synapse_profile }}"
fi
python .github/scripts/delete_projects.py

- name: Run team deletion script
shell: bash
run: |
if [ -n "${{ matrix.synapse_profile }}" ]; then
export SYNAPSE_PROFILE="${{ matrix.synapse_profile }}"
fi
python .github/scripts/delete_teams.py

- name: Run empty trash script
shell: bash
run: |
if [ -n "${{ matrix.synapse_profile }}" ]; then
export SYNAPSE_PROFILE="${{ matrix.synapse_profile }}"
fi
python .github/scripts/empty_trash.py
Binary file modified test.synapseConfig.enc
Binary file not shown.
Loading