Merge pull request #23 from outis/master #117
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
name: build | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: ${{ matrix.os }} / ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [Ubuntu, MacOS] | |
python-version: [3.7, 3.8, 3.9, '3.10', 3.11] | |
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 poetry | |
shell: bash | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: configure poetry | |
shell: bash | |
run: poetry config virtualenvs.in-project true | |
- name: upgrade pip | |
shell: bash | |
run: poetry run python -m pip install pip -U | |
- name: install dependencies | |
shell: bash | |
run: poetry install | |
- name: print debug info | |
shell: bash | |
run: | | |
poetry run pdfxmeta -V | |
poetry run pdftocgen -V | |
poetry run pdftocio -V | |
- name: run tests | |
shell: bash | |
run: make test |