-
-
Notifications
You must be signed in to change notification settings - Fork 2k
57 lines (52 loc) · 1.75 KB
/
conda-install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Conda Install - PySyft
on:
workflow_call:
workflow_dispatch:
inputs:
none:
description: "Run Version Tests Manually"
required: false
jobs:
constall-install-syft:
strategy:
max-parallel: 99
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12"]
fail-fast: false
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
activate-environment: syft_conda_env
python-version: ${{ matrix.python-version }}
- name: Install syft (Windows)
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
python -m pip install ./packages/syft
$expectedVersion = python packages/grid/VERSION
$syftVersion = python -c 'import syft; print(syft.__version__)'
# Compare the versions
if ($expectedVersion -ne $syftVersion) {
Write-Output "Expected version: $expectedVersion"
Write-Output "Actual version: $syftVersion"
Write-Output "Version mismatch."
exit 1
}
- name: Install syft (MacOS or Linux)
if: matrix.os != 'windows-latest'
shell: bash -el {0}
run: |
python -m pip install ./packages/syft
EXPECTED_VERSION=$(python packages/grid/VERSION)
SYFT_VERSION=$(python -c 'import syft; print(syft.__version__)')
# Compare the versions
if [ "$EXPECTED_VERSION" != "$SYFT_VERSION" ]; then
echo "Expected version: $EXPECTED_VERSION"
echo "Actual version: $SYFT_VERSION"
echo "Version mismatch."
exit 1
fi