Skip to content

Commit 24dca1a

Browse files
committed
fix: CI and formatting
Signed-off-by: Cesar Berrospi Ramis <[email protected]>
1 parent a788f5c commit 24dca1a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ci.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: "Run CI"
22

33
on:
4-
push:
5-
branches: ["main"]
64
pull_request:
7-
branches: ["main"]
5+
types: [opened, reopened, synchronize]
6+
push:
7+
branches:
8+
- "**"
9+
- "!gh-pages"
810

911
jobs:
1012
code-checks:

tests/test_s3_helper.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from docling_jobkit.connectors.s3_helper import strip_prefix_postfix
22

3+
34
def test_strip_prefix_postfix():
45
in_set = {"mypath/json/file_1.json", "mypath/json/file_2.json"}
56
out_set = strip_prefix_postfix(in_set, prefix="mypath/json/", extension=".json")
67

78
assert len(in_set) == len(out_set)
8-
assert out_set == {"file_1", "file_2"}
9+
assert out_set == {"file_1", "file_2"}

0 commit comments

Comments
 (0)