Skip to content

Commit

Permalink
Merge pull request #8650 from OpenMined/fix-post-release-test-workflow
Browse files Browse the repository at this point in the history
pass test pypi url as extra index
  • Loading branch information
shubham3121 authored Apr 2, 2024
2 parents da6f7a6 + 9168a86 commit 1adf8a2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cd-post-release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,13 @@ jobs:
${{ runner.os }}-pip-py${{ matrix.python-version }}-
- name: Install Syft
shell: bash
run: |
if [[ ${{inputs.release_platform}} == "REAL_PYPI" ]]; then
pip install syft==${{inputs.syft_version}}
fi
if [[ ${{ inputs.release_platform }} == "TEST_PYPI" ]]; then
pip install -i https://test.pypi.org/simple/ syft==${{inputs.syft_version}}
pip install --extra-index-url https://test.pypi.org/simple/ syft==${{inputs.syft_version}}
fi
- name: Check Syft version
Expand Down Expand Up @@ -283,7 +284,7 @@ jobs:
SYFT_VERSION: ${{ inputs.syft_version }}
run: |
if [[ ${{ inputs.release_platform }} == "TEST_PYPI" ]]; then
pip install -i https://test.pypi.org/simple/ syft[data_science,dev]==${{ inputs.syft_version }}
pip install --extra-index-url https://test.pypi.org/simple/ syft[data_science,dev]==${{ inputs.syft_version }}
fi
if [[ ${{ inputs.release_platform }} == "REAL_PYPI" ]]; then
pip install syft[data_science,dev]==${{ inputs.syft_version }}
Expand Down
14 changes: 11 additions & 3 deletions notebooks/api/0.8/06-multiple-code-requests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"metadata": {},
"outputs": [],
"source": [
"dataset2 = sy.Dataset(name=\"My Sample Dataset - II\")\n",
"dataset2 = sy.Dataset(name=\"Age Dataset\")\n",
"asset2 = sy.Asset(name=\"Sample Data - II\")\n",
"asset2.set_obj(sample_data * 10)\n",
"asset2.set_mock(mock_sample_data * 10, mock_is_real=False)\n",
Expand Down Expand Up @@ -174,7 +174,7 @@
"metadata": {},
"outputs": [],
"source": [
"assert len(datasets) == 2\n",
"assert len(datasets) == 1\n",
"dataset_ptr = datasets[0]\n",
"dataset_ptr"
]
Expand Down Expand Up @@ -477,7 +477,7 @@
"metadata": {},
"outputs": [],
"source": [
"datasets = ds_client.datasets.search(name=\"My Sample Dataset - II\")\n",
"datasets = ds_client.datasets.search(name=\"Age Dataset\")\n",
"dataset_ptr2 = datasets[0]\n",
"dataset_ptr2"
]
Expand Down Expand Up @@ -552,6 +552,14 @@
"if node.deployment_type.value in [\"python\", \"single_container\"]:\n",
" node.land()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "40",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
2 changes: 2 additions & 0 deletions packages/syft/tests/syft/stores/queue_stash_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# stdlib
from threading import Thread
import time
from typing import Any

# third party
Expand Down Expand Up @@ -377,6 +378,7 @@ def helper_queue_update_threading(root_verify_key, create_queue_cbk) -> None:
repeats = 5

queue = create_queue_cbk()
time.sleep(1)

obj = mock_queue_object()
queue.set(root_verify_key, obj, ignore_duplicates=False)
Expand Down

0 comments on commit 1adf8a2

Please sign in to comment.