-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from raverank/github-action
Introduce Github Action to run Manki
- Loading branch information
Showing
8 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
tests/** | ||
.vscode/** | ||
action.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM python:3.9-alpine | ||
|
||
# RUN adduser -D mankiuser | ||
# USER mankiuser | ||
# ENV PATH="/home/mankiuser/.local/bin:${PATH}" | ||
|
||
# WORKDIR /home/mankiuser/app | ||
|
||
# COPY --chown=mankiuser:mankiuser requirements.txt . | ||
# RUN chmod -R 777 . | ||
# RUN /usr/local/bin/python -m pip install --upgrade pip | ||
# RUN pip install --user -r requirements.txt | ||
|
||
# COPY --chown=mankiuser:mankiuser . . | ||
# RUN pip install --user -e . | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install --no-cache-dir --upgrade pip | ||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
|
||
COPY . . | ||
RUN pip install -e . | ||
|
||
WORKDIR /run | ||
|
||
ENTRYPOINT [ "manki" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Manki Converter' | ||
description: 'Generate Anki Packages from Markdown Files using Manki' | ||
inputs: | ||
project-root: | ||
description: 'The root of the manki project (including the manki.toml)' | ||
required: true | ||
outputs: | ||
conversion-log: | ||
description: 'Output of the conversion process.' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- "--git-action" | ||
- "--root" | ||
- ${{ inputs.project-root }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
beautifulsoup4==4.10.0 | ||
Markdown==3.3.6 | ||
|
||
genanki~=0.13.0 | ||
pytest~=7.0.1 | ||
setuptools~=57.4.0 | ||
beautifulsoup4==4.10 | ||
Markdown==3.3 | ||
jinja2==3.1 | ||
genanki~=0.13 | ||
pytest~=7.0 | ||
setuptools~=57.4 | ||
toml==0.10 | ||
inflection==0.5 | ||
pygments==2.13 | ||
rich==12.6 | ||
pdfkit==1.0.0 | ||
python-markdown-math==0.8 | ||
pymdown-extensions==9.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters