Skip to content

Commit

Permalink
[ci] Add taichiCourse01 & marching_squares release tests (#8157)
Browse files Browse the repository at this point in the history
Issue: #5741 

### Brief Summary

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at bc9de83</samp>

This pull request adds tests for more taichi examples and features from
external repositories in `taichiCourse01`. It updates the test scripts
for both Unix and Windows platforms to clone and install the necessary
dependencies and run the tests.

### Walkthrough

<!--
copilot:walkthrough
-->
### <samp>🤖 Generated by Copilot at bc9de83</samp>

* Add six git clone commands to download additional repositories from
taichiCourse01 in both `unix_test.sh` and `win_test.ps1` scripts
([link](https://github.com/taichi-dev/taichi/pull/8157/files?diff=unified&w=0#diff-34fa2bad51121dca1ec0d22993a5d102611b68b6466589d40a651b955ea67ca3R56-R61),
[link](https://github.com/taichi-dev/taichi/pull/8157/files?diff=unified&w=0#diff-1e56d5e9fca9a2bd938d65c6735714636f8d236462ae1167ca97e3c1a166cf54L98-R125))
* Add six pairs of pushd and popd commands to install the requirements
for each of the cloned repositories using pip in both `unix_test.sh` and
`win_test.ps1` scripts
([link](https://github.com/taichi-dev/taichi/pull/8157/files?diff=unified&w=0#diff-34fa2bad51121dca1ec0d22993a5d102611b68b6466589d40a651b955ea67ca3R68-R91),
[link](https://github.com/taichi-dev/taichi/pull/8157/files?diff=unified&w=0#diff-1e56d5e9fca9a2bd938d65c6735714636f8d236462ae1167ca97e3c1a166cf54L98-R125))
* Modify the existing code in `win_test.ps1` to match the changes in
`unix_test.sh` for running the tests on different platforms
([link](https://github.com/taichi-dev/taichi/pull/8157/files?diff=unified&w=0#diff-1e56d5e9fca9a2bd938d65c6735714636f8d236462ae1167ca97e3c1a166cf54L98-R125))
  • Loading branch information
L2ncE authored Jun 21, 2023
1 parent bb5ea10 commit 4eb2cff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/scripts/unix_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if [ "$TI_RUN_RELEASE_TESTS" == "1" ]; then
python3 -m pip install PyYAML
git clone https://github.com/taichi-dev/taichi-release-tests
pushd taichi-release-tests
git checkout 20230607
git checkout 20230619
mkdir -p repos/taichi/python/taichi
EXAMPLES=$(cat <<EOF | python3 | tail -n 1
import taichi.examples
Expand All @@ -53,6 +53,9 @@ EOF
git clone --depth=1 https://github.com/taichi-dev/quantaichi
git clone --depth=1 https://github.com/taichi-dev/difftaichi
git clone --depth=1 https://github.com/taichi-dev/games201
git clone --depth=1 https://github.com/taichiCourse01/--Galaxy
git clone --depth=1 https://github.com/taichiCourse01/--Shadertoys
git clone --depth=1 https://github.com/taichiCourse01/taichi_ray_tracing
popd

pushd repos/difftaichi
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/scripts/win_test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,16 @@ if ("$env:TI_RUN_RELEASE_TESTS" -eq "1") {
Invoke pip install PyYAML
Invoke git clone https://github.com/taichi-dev/taichi-release-tests
Push-Location taichi-release-tests
Invoke git checkout 20230607
Invoke git checkout 20230619
mkdir -p repos/taichi/python/taichi
$EXAMPLES = & python -c 'import taichi.examples as e; print(e.__path__._path[0])' | Select-Object -Last 1
Push-Location repos
Invoke git clone --depth=1 https://github.com/taichi-dev/quantaichi
Invoke git clone --depth=1 https://github.com/taichi-dev/difftaichi
Invoke git clone --depth=1 https://github.com/taichi-dev/games201
Invoke git clone --depth=1 https://github.com/taichiCourse01/--Galaxy
Invoke git clone --depth=1 https://github.com/taichiCourse01/--Shadertoys
Invoke git clone --depth=1 https://github.com/taichiCourse01/taichi_ray_tracing
Pop-Location
Push-Location repos/difftaichi
Invoke pip install -r requirements.txt
Expand Down

0 comments on commit 4eb2cff

Please sign in to comment.