Skip to content

Commit

Permalink
adjust Tests.yml to create venv to install sympy
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalsaleh committed Jul 5, 2024
1 parent 13276df commit 826fe49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
run: |
sudo apt update
sudo apt install -y python3-pip
sudo apt install -y python3-venv
python3 -m venv temp_env
. temp_env/bin/activate
pip install sympy
- name: Prepare environment
run: |
cp ./MachineLearningForCAP/dev/ci_gaprc /home/gap/.gap/gaprc
Expand Down
4 changes: 2 additions & 2 deletions examples/Expressions.g
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ Variables( x1 );
#! [ [ x1 * x3 + x2 * (- x3) ] ]
e := Sin( x1 ) / Cos( x1 ) + Sin( x2 ) ^ 2 + Cos( x2 ) ^ 2;
#! Sin( x1 ) / Cos( x1 ) + Sin( x2 ) ^ 2 + Cos( x2 ) ^ 2
# SimplifyExpressionUsingPython( [ e ] );
# [ "Tan(x1) + 1" ]
SimplifyExpressionUsingPython( [ e ] );
#! [ "Tan(x1) + 1" ]
#! @EndExample

0 comments on commit 826fe49

Please sign in to comment.