We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a788f5c commit 24dca1aCopy full SHA for 24dca1a
.github/workflows/ci.yml
@@ -1,10 +1,12 @@
1
name: "Run CI"
2
3
on:
4
- push:
5
- branches: ["main"]
6
pull_request:
7
+ types: [opened, reopened, synchronize]
+ push:
+ branches:
8
+ - "**"
9
+ - "!gh-pages"
10
11
jobs:
12
code-checks:
tests/test_s3_helper.py
@@ -1,8 +1,9 @@
from docling_jobkit.connectors.s3_helper import strip_prefix_postfix
+
def test_strip_prefix_postfix():
in_set = {"mypath/json/file_1.json", "mypath/json/file_2.json"}
out_set = strip_prefix_postfix(in_set, prefix="mypath/json/", extension=".json")
assert len(in_set) == len(out_set)
- assert out_set == {"file_1", "file_2"}
+ assert out_set == {"file_1", "file_2"}
0 commit comments