Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ jobs:
- name: Compile examples module
run: sbt "project examples" compile

- name: Check if docs are up to date
- name: Check if docsRoot are up to date
run: sbt "docsRoot/mdoc --check"

- name: Check if docs are up to date
run: sbt "docs/mdoc --check"

- name: Run tests
Expand Down
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ lazy val docsRoot = (project in file(".dimwit-docs-root"))
"VERSION" -> version.value
),
fork := true,
javaOptions ++= scalapyJavaOptions,
envVars := (ThisBuild / envVars).value
)

Expand All @@ -107,5 +108,6 @@ lazy val docs = (project in file(".dimwit-docs"))
"VERSION" -> version.value
),
fork := true,
javaOptions ++= scalapyJavaOptions,
envVars := (ThisBuild / envVars).value
)
2 changes: 1 addition & 1 deletion core/src/test/scala/dimwit/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object MustBeFloat:
given MustBeFloat[Float] with {}

transparent inline given [V]: MustBeFloat[V] =
error("approxEqual can only be used with Float tensors. For Int tensors, use 'equal(...)'.")
error("approxEqual can only be used with Float tensors. For Int tensors, use 'equal(...)'.")

private lazy val _dimwitTestInit: Unit = dimwit.initialize()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class TensorOpsStructureSuite extends DimwitTest:
val acbDimCode = "t.rearrange((Axis[A |*| C], Axis[B |*| D]), Axis[A] -> 2, Axis[C] -> 2, Axis[B] -> 2)"
val acbDimErrors = typeCheckErrors(acbDimCode)
acbDimErrors should have size 1
acbDimErrors.head.message should not include ("Missing Axis: 'dimwit.D'")
acbDimErrors.head.message should include("Missing Axis: 'dimwit.D'")

"t.rearrange((Axis[A |*| C], Axis[B |*| D]), Axis[A] -> 2, Axis[C] -> 2, Axis[B] -> 2, Axis[D] -> 2)" should compile

Expand Down
Loading