Skip to content

Commit

Permalink
feat: enable python on mac (#379)
Browse files Browse the repository at this point in the history
* feat: enable python on mac

* feat: enable python on mac

* feat: enable python on mac

* feat: enable python on mac

* chore: refine go codes

* fix: remove python installation in github CI workflow

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

* fix: refine codes

---------

Co-authored-by: sunxilin <[email protected]>
  • Loading branch information
halajohn and sunxilin authored Dec 10, 2024
1 parent 7810257 commit 513d22d
Show file tree
Hide file tree
Showing 20 changed files with 340 additions and 246 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ jobs:
fi
export PATH=$(pwd)/core/ten_gn:$PATH
echo $PATH
tgn gen mac arm64 ${{ matrix.build_type }} -- log_level=1 enable_serialized_actions=true ten_enable_private_tests=false ten_rust_enable_gen_cargo_config=false ten_enable_cargo_clean=true ten_enable_python_binding=false
tgn build mac arm64 ${{ matrix.build_type }}
tree -I 'gen|obj' out
Expand Down Expand Up @@ -109,6 +111,9 @@ jobs:
run: |
chmod +x out/mac/arm64/tests/standalone/ten_runtime_smoke_test
out/mac/arm64/tests/standalone/ten_runtime_smoke_test
# continue-on-error: true
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

- name: Run Tests (ten_rust standalone tests)
env:
Expand Down Expand Up @@ -138,11 +143,6 @@ jobs:
./unit_test || { echo "ten_manager unit test failed"; exit 1; }
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install Python dependencies via script
run: |
python .github/tools/setup_pytest_dependencies.py
Expand Down Expand Up @@ -238,9 +238,14 @@ jobs:
fi
export PATH=$(pwd)/core/ten_gn:$PATH
echo $PATH
tgn gen mac x64 ${{ matrix.build_type }} -- log_level=1 enable_serialized_actions=true ten_enable_private_tests=false ten_rust_enable_gen_cargo_config=false ten_enable_cargo_clean=true ten_enable_python_binding=false
tgn build mac x64 ${{ matrix.build_type }}
tree -I 'gen|obj' out
# continue-on-error: true
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

- name: Run Tests (ten_utils_unit_test)
env:
Expand Down Expand Up @@ -300,11 +305,6 @@ jobs:
./unit_test || { echo "ten_manager unit test failed"; exit 1; }
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install Python dependencies via script
run: |
python .github/tools/setup_pytest_dependencies.py
Expand Down Expand Up @@ -332,6 +332,10 @@ jobs:
export PATH=$(pwd)/core/ten_gn:$PATH
cd out/mac/x64/
pytest -s tests/ten_runtime/integration/
# continue-on-error: true

# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

# Building ten_runtime without the ten_rust library (i.e., ten_enable_ten_rust_apis=false).
build-mac-arm64-without-ten-rust:
Expand Down Expand Up @@ -397,8 +401,11 @@ jobs:
fi
export PATH=$(pwd)/core/ten_gn:$PATH
echo $PATH
tgn gen mac arm64 ${{ matrix.build_type }} -- log_level=1 enable_serialized_actions=true ten_enable_private_tests=false ten_rust_enable_gen_cargo_config=false ten_enable_ten_rust_apis=false ten_enable_python_binding=false
tgn gen mac arm64 ${{ matrix.build_type }} -- log_level=1 enable_serialized_actions=true ten_enable_private_tests=false ten_rust_enable_gen_cargo_config=false ten_enable_ten_rust_apis=false
tgn build mac arm64 ${{ matrix.build_type }}
tree -I 'gen|obj' out
- name: Run Tests (ten_runtime_smoke_test)
Expand All @@ -410,3 +417,7 @@ jobs:
run: |
chmod +x out/mac/arm64/tests/standalone/ten_runtime_smoke_test
out/mac/arm64/tests/standalone/ten_runtime_smoke_test
# continue-on-error: true

# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
5 changes: 0 additions & 5 deletions .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ jobs:
./unit_test || { echo "ten_manager unit test failed"; exit 1; }
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install Python dependencies via script
run: |
python .github/tools/setup_pytest_dependencies.py
Expand Down
Loading

0 comments on commit 513d22d

Please sign in to comment.