Skip to content

Commit

Permalink
Use miniconda and install pandoc and texlive
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Jul 2, 2020
1 parent 2d88554 commit f847b05
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ insert_final_newline = false

[Makefile]
indent_style = tab

[*.yml]
indent_size = 2
20 changes: 16 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,33 @@ jobs:

- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- name: Set up Python ${{ matrix.python-version }} with Miniconda
uses: goanpeca/setup-miniconda@v1
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge

- name: Install dependencies
shell: bash -l {0}
run: |
which python
python --version
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
python -m pip install -r requirements-dev.txt
conda install pandoc tectonic
mkdir bin
ln -s $(which tectonic) /usr/local/bin/xelatex
echo "::add-path::/usr/local/bin/"
# pandoc is for markdown-based export formats.
# tectonic is a TeX distribution. a LaTeX engine is needed for pdf export format.

- name: Lint package
shell: bash -l {0}
run: |
make lint
- name: Run tests
shell: bash -l {0}
run: |
make test
Expand All @@ -44,4 +56,4 @@ jobs:
with:
file: ./coverage.xml
fail_ci_if_error: true
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8 }}
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8

0 comments on commit f847b05

Please sign in to comment.