Compare commits

..
6 Commits
Author SHA1 Message Date
retoor 47ca978650 chore: remove interactive confirmation prompt from pdf2text conversion script
pdf2text test / Compile (push) Failing after 13s
2024-11-22 19:55:08 +00:00
retoor 969ef8b270 feat: replace broken shell command with echo in test workflow
The CI test workflow previously attempted to run an invalid shell command
"Check if starts correcly. Syntax check." which would fail. This commit
replaces it with a safe echo statement that prints the same message,
allowing the pipeline to proceed to subsequent steps.
2024-11-22 19:51:10 +00:00
retoor cab4498410 fix: add python3-pip and python3-venv packages to CI workflow install step 2024-11-22 19:48:37 +00:00
retoor ef9cfc2511 feat: add initial CI workflow for automated build and syntax check on push
Create .gitea/workflows/test.yaml with a Compile job that runs on every push,
checking out code, installing python3 dependencies from requirements.txt,
and executing pdf2text to validate syntax and startup behavior on ubuntu-latest.
2024-11-22 19:45:58 +00:00
retoor 27e1bc2b7a fix: convert plain-text references to hyperlinks for pdf2text script and requirements.txt in README 2024-11-22 19:41:31 +00:00
retoor b4227c1adc chore: add pdf2text batch converter script with venv setup and readme 2024-11-22 19:37:42 +00:00
2 changed files with 2 additions and 5 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ jobs:
ls ${{ gitea.workspace }} ls ${{ gitea.workspace }}
- run: echo "Install dependencies." - run: echo "Install dependencies."
- run: apt update - run: apt update
- run: apt install python3 - run: apt install python3 python3-pip python3-venv -y
- run: python3 -m pip install -r requirements.txt - run: python3 -m pip install -r requirements.txt
- run: "Check if starts correcly. Syntax check." - run: echo "Check if starts correcly. Syntax check."
- run: ./pdf2text . - run: ./pdf2text .
- run: echo "This job's status is ${{ job.status }}." - run: echo "This job's status is ${{ job.status }}."
-3
View File
@@ -25,9 +25,6 @@ if not source_path.exists():
raise Exception(f"{source_path.absolute()} does not exist.") raise Exception(f"{source_path.absolute()} does not exist.")
print("This script will convert all your pdf files to txt files in the same directory.") print("This script will convert all your pdf files to txt files in the same directory.")
if input("Continue? [Y/n]: ").strip().lower() in ["n", "no"]:
print("Operation cancelled.")
exit(0)
for file in pathlib.Path(source_path).glob("*.pdf"): for file in pathlib.Path(source_path).glob("*.pdf"):