-
Notifications
You must be signed in to change notification settings - Fork 25
40 lines (40 loc) · 1.1 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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.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