Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Typst v0.13.0-rc1 to CI #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
7 changes: 5 additions & 2 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
matrix:
# Test for the following Typst versions
# 0.11.0 (earliest supported),
# 0.11.1, 0.12.0 (latest supported)
typst-version: [v0.11.0, v0.11.1, v0.12.0]
# 0.11.1, 0.12.0, 0.13.0 (latest supported)
typst-version: [v0.11.0, v0.11.1, v0.12.0, v0.13.0-rc1]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -48,6 +48,9 @@ jobs:
with:
typst-version: ${{ matrix.typst-version }}

- name: ℹ️ Check installed Typst version
run: typst --version

- name: 🛠️ Compile integration tests
run: |
ANSI_RED=$'\e[31m'
Expand Down
5 changes: 4 additions & 1 deletion test/unit/elements/outline/contextual-caption/test.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#import "/test/unit/base.typ": template
#show: template
#set text(5pt)
#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black)))
#let outline-fill = box(width: 1fr, stroke: (bottom: black))
#set outline(title: box(circle(fill: black, radius: 2.5pt)))
#set outline(fill: outline-fill) if sys.version < version(0, 13, 0)
#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0)

#import "/src/lib.typ" as e: field

Expand Down
5 changes: 4 additions & 1 deletion test/unit/elements/outline/contextual-ref/test.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#import "/test/unit/base.typ": template
#show: template
#set text(5pt)
#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black)))
#let outline-fill = box(width: 1fr, stroke: (bottom: black))
#set outline(title: box(circle(fill: black, radius: 2.5pt)))
#set outline(fill: outline-fill) if sys.version < version(0, 13, 0)
#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0)

#import "/src/lib.typ" as e: field

Expand Down
5 changes: 4 additions & 1 deletion test/unit/elements/outline/count/test.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#import "/test/unit/base.typ": template
#show: template
#set text(5pt)
#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black)))
#let outline-fill = box(width: 1fr, stroke: (bottom: black))
#set outline(title: box(circle(fill: black, radius: 2.5pt)))
#set outline(fill: outline-fill) if sys.version < version(0, 13, 0)
#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0)

#import "/src/lib.typ" as e: field

Expand Down
5 changes: 4 additions & 1 deletion test/unit/elements/outline/custom-ref/test.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#import "/test/unit/base.typ": template
#show: template
#set text(5pt)
#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black)))
#let outline-fill = box(width: 1fr, stroke: (bottom: black))
#set outline(title: box(circle(fill: black, radius: 2.5pt)))
#set outline(fill: outline-fill) if sys.version < version(0, 13, 0)
#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0)

#import "/src/lib.typ" as e: field

Expand Down
5 changes: 4 additions & 1 deletion test/unit/elements/outline/simple-caption/test.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#import "/test/unit/base.typ": template
#show: template
#set text(5pt)
#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black)))
#let outline-fill = box(width: 1fr, stroke: (bottom: black))
#set outline(title: box(circle(fill: black, radius: 2.5pt)))
#set outline(fill: outline-fill) if sys.version < version(0, 13, 0)
#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0)

#import "/src/lib.typ" as e: field

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#import "/test/unit/base.typ": template
#show: template
#set text(5pt)
#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black)))
#let outline-fill = box(width: 1fr, stroke: (bottom: black))
#set outline(title: box(circle(fill: black, radius: 2.5pt)))
#set outline(fill: outline-fill) if sys.version < version(0, 13, 0)
#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0)

#import "/src/lib.typ" as e: field

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#import "/test/unit/base.typ": template
#show: template
#set text(5pt)
#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black)))
#let outline-fill = box(width: 1fr, stroke: (bottom: black))
#set outline(title: box(circle(fill: black, radius: 2.5pt)))
#set outline(fill: outline-fill) if sys.version < version(0, 13, 0)
#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0)

#import "/src/lib.typ" as e: field

Expand Down
5 changes: 4 additions & 1 deletion test/unit/elements/outline/simple-ref/test.typ
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#import "/test/unit/base.typ": template
#show: template
#set text(5pt)
#set outline(title: box(circle(fill: black, radius: 2.5pt)), fill: box(width: 1fr, stroke: (bottom: black)))
#let outline-fill = box(width: 1fr, stroke: (bottom: black))
#set outline(title: box(circle(fill: black, radius: 2.5pt)))
#set outline(fill: outline-fill) if sys.version < version(0, 13, 0)
#set outline.entry(fill: outline-fill) if sys.version >= version(0, 13, 0)

#import "/src/lib.typ" as e: field

Expand Down
2 changes: 1 addition & 1 deletion test/unit/types/custom/cast/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
#assert.eq(cast(95.6, person), (true, person("Generic", 95)))
#assert.eq(cast(gradient.linear(red, blue, green), person), (true, person("Generic 2", 100, border: gradient.linear(red, blue, green))))
#assert.eq(cast(int, person), (true, person("Joseph", 50)))
#assert.eq(cast("abc", person), (false, "expected person, integer, float, stroke, length, color, gradient, pattern, dictionary, type or function, found string"))
#assert.eq(cast("abc", person), (false, "expected person, integer, float, stroke, length, color, gradient, " + str(types.native.tiling) + ", dictionary, type or function, found string"))
#assert.eq(cast(5.0, person), (false, "all casts to custom type 'person' failed\n hint (large float): value must be larger than 5"))
#assert.eq(cast(float, person), (false, "all casts to custom type 'person' failed\n hint (large float): value must be larger than 5"))
Loading