Skip to content

Commit

Permalink
test: setup python action in pandoc ubuntu #1
Browse files Browse the repository at this point in the history
  • Loading branch information
lbrealdev committed Jun 18, 2024
1 parent 5589d00 commit 5f1a6d6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/md-to-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup python
run: |
apt-get -q --no-allow-insecure-repositories update
apt-get install python3 python3.12-venv -y
python3 -m venv pypandoc
. pypandoc/bin/activate
pip install pypandoc pypandoc-binary
#- name: Setup python
# run: |
# apt-get -q --no-allow-insecure-repositories update
# apt-get install python3 python3.12-venv -y
# python3 -m venv pypandoc
# . pypandoc/bin/activate
# pip install pypandoc pypandoc-binary

- name: Run pypandoc
run: |
. pypandoc/bin/activate
python3 converter.py ${{ inputs.markdown-source-dir }}
- name: Debug -- setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'

#- name: Run pypandoc
# run: |
# . pypandoc/bin/activate
# python3 converter.py ${{ inputs.markdown-source-dir }}

- name: Run pandoc
run: |
Expand Down
1 change: 0 additions & 1 deletion converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
pdf_output_path = DESTINATION_PATH_TO_PDF / relative_path.with_suffix(".pdf")

pdf_output_path.parent.mkdir(parents=True, exist_ok=True)
#pdf_output_path.touch(exist_ok=True)

source_md_files.append(markdown_file)
output_pdf_files.append(pdf_output_path)
Expand Down

0 comments on commit 5f1a6d6

Please sign in to comment.