Update changelog. #35
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 workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python package | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# see setup.py for supported versions | |
python-version: | |
- 2.7 | |
- 3.5 | |
- 3.6 | |
- 3.7 | |
- 3.8 | |
- 3.9 | |
- pypy2 | |
- pypy3 | |
# should test sparingly across API breaking boundaries | |
pandoc-version: | |
# - 2.0.6 | |
# - 2.1.3 | |
# - 2.2.3.2 | |
# - 2.3.1 | |
# - 2.4 | |
# - 2.5 | |
# - 2.6 | |
# panflute only support at or above this | |
# - 2.7.3 | |
# no major API change between 2.7 to 2.9 | |
# - 2.8.1 | |
# - 2.9.2.1 | |
# as of writing, panflute only support pandoc<= 2.9. But GitHub workflow does not support "allow failure" yet. See https://github.com/actions/toolkit/issues/399 | |
# 2.10 has breaking change | |
# - 2.10.1 | |
# 2.11 has minor breaking change, fixing some quirks in 2.10 | |
# - 2.11.0.4 | |
- 2.11.4 | |
# - 2.12 | |
- latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install examples' dependencies | |
run: sudo apt install abcm2ps graphviz graphviz-dev texlive-full | |
- name: Install dependencies—pip | |
# pygraphviz for graphviz.py | |
run: | | |
python -m pip install -U setuptools pygraphviz | |
python -m pip install . | |
- name: Install dependencies—pandoc | |
run: | | |
# pandoc | |
[[ ${{ matrix.pandoc-version }} == "latest" ]] && url="https://github.com/jgm/pandoc/releases/latest" || url="https://github.com/jgm/pandoc/releases/tag/${{ matrix.pandoc-version }}" | |
downloadUrl="https://github.com$(curl -L $url | grep -o '/jgm/pandoc/releases/download/.*-amd64\.deb')" | |
wget --quiet "$downloadUrl" | |
sudo dpkg -i "${downloadUrl##*/}" | |
- name: Tests | |
run: cd examples; make -j4 |