-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add module
gprinter
, methods undual
, g_invol
, ccon
, sp
, `no…
…rm2`, `norm` for Mv, with validated tests (#510) Addresses #505 . Co-authored-by: Greg Grunberg <[email protected]> Co-authored-by: Alan Bromborsky <[email protected]>
- Loading branch information
1 parent
d4d09bd
commit 644a32a
Showing
54 changed files
with
10,486 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,27 @@ jobs: | |
- name: Lint | ||
run: | | ||
flake8 -v | ||
- uses: hidakatsuya/[email protected] | ||
if: "matrix.python-version == '3.11'" | ||
with: | ||
diff-pdf-version: '0.5' | ||
- uses: actions/cache@v3 | ||
name: Tectonic Cache | ||
if: "matrix.python-version == '3.11'" | ||
with: | ||
path: ~/.cache/Tectonic | ||
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }} | ||
restore-keys: | | ||
${{ runner.os }}-tectonic- | ||
- uses: wtfjoke/setup-tectonic@v2 | ||
if: "matrix.python-version == '3.11'" | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
biber-version: "latest" | ||
- name: Set environment variables | ||
if: "matrix.python-version == '3.11'" | ||
run: | | ||
echo "TEST_GXPDF=1" >> "$GITHUB_ENV" | ||
- name: Test | ||
run: | | ||
PYTEST_ARGS=(); | ||
|
@@ -49,8 +70,10 @@ jobs: | |
PYTEST_ARGS+=(-k "$PYTEST_K_FILTER"); | ||
fi; | ||
pytest \ | ||
-vv --durations=50 \ | ||
--cov=galgebra \ | ||
--nbval examples/ipython/ \ | ||
--nbval examples/primer/ \ | ||
test \ | ||
--nbval-current-env \ | ||
--nbval-sanitize-with test/.nbval_sanitize.cfg \ | ||
|
@@ -60,6 +83,11 @@ jobs: | |
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- uses: actions/upload-artifact@v3 | ||
if: "matrix.python-version == '3.11' && failure()" | ||
with: | ||
name: PDF-diffs | ||
path: test/diff | ||
|
||
release: | ||
name: Create release and send to PyPI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,3 +139,7 @@ examples/**/*.tex | |
|
||
# Mac | ||
.DS_Store | ||
|
||
test/generated | ||
test/diff | ||
examples/GSG/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
# Keep the project coverage target to auto | ||
target: auto | ||
patch: | ||
default: | ||
# Set the patch coverage target to 75% | ||
target: 75% |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ | |
:hidden: | ||
|
||
tutorials/algebra | ||
tutorials/lt | ||
tutorials/gprint | ||
|
||
.. toctree:: | ||
:caption: API | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/cm3.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/g2.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/g3.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/g4.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/gprint.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/h3.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/ipython/lt.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/sp2.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/sp2g3.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/sp2sp3.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/sp3.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../../examples/primer/spacetime.ipynb" | ||
} |
Oops, something went wrong.