Skip to content

Commit 0d27ced

Browse files
committed
ci: skip graphviz tests
1 parent 421f8e8 commit 0d27ced

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jobs:
1010
go-version: "1.20"
1111
- name: Checkout
1212
uses: actions/checkout@v3
13-
- name: Prepare
14-
uses: tecolicom/actions-use-apt-tools@v1
15-
with:
16-
tools: graphviz
1713
- name: MongoDB
1814
uses: supercharge/[email protected]
1915
with:

coal/visualize_test.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ import (
66
"github.com/stretchr/testify/assert"
77
)
88

9+
// Note: We skip the PDF test in short mode because it requires graphviz to be installed.
10+
911
func TestCatalogVisualizePDF(t *testing.T) {
10-
pdf, err := VisualizePDF("Test", &postModel{}, &commentModel{}, &selectionModel{}, &noteModel{}, &listModel{})
11-
assert.NoError(t, err)
12-
assert.NotEmpty(t, pdf)
12+
if !testing.Short() {
13+
pdf, err := VisualizePDF("Test", &postModel{}, &commentModel{}, &selectionModel{}, &noteModel{}, &listModel{})
14+
assert.NoError(t, err)
15+
assert.NotEmpty(t, pdf)
16+
}
1317
}
1418

1519
func TestCatalogVisualizeDOT(t *testing.T) {

0 commit comments

Comments
 (0)