GetRD / academic-file-converter

📚 Import Bibtex publications and Jupyter Notebook blog posts into your Markdown website or book. 将Bibtex转换为Markdown网站

Home Page:https://docs.hugoblox.com/reference/content-types/#automatically-import-publications-from-bibtex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add tests and CI with Github Actions

gcushen opened this issue · comments

commented
  • Add flake8 and pytest framework for testing.
  • Add at least one test for importing BibTeX with a test bib file.
  • Setup CI with Github Actions
commented

Basic GitHub Actions now working as of 000b129

See workflow at https://github.com/wowchemy/hugo-academic-cli/actions

Future work:

  • Formatting (Isort and Black) will not currently provide errors, so requires reading the log, even if workflow is successful. Better solution would be to auto commit formatting improvements in CI or for workflow to fail if there are formatting changes.
  • Add code coverage
  • Fix 2 format flow warnings:
/home/runner/.local/share/virtualenvs/hugo-academic-cli-jnkQB8Ka/lib/python3.8/site-packages/isort/main.py:914: UserWarning: W0501: The following deprecated CLI flags were used and ignored: --recursive!
  warn(
/home/runner/.local/share/virtualenvs/hugo-academic-cli-jnkQB8Ka/lib/python3.8/site-packages/isort/main.py:918: UserWarning: W0500: Please see the 5.0.0 Upgrade guide: https://pycqa.github.io/isort/docs/upgrade_guides/5.0.0/
  warn(