-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.29 KB
/
generate-reference-files.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
41
42
43
44
45
46
47
48
49
name: Generate
on:
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-20.04 # Required for Python 3.6.
name: Generate on Python ${{ matrix.python }}
strategy:
matrix:
python: [3.5, 3.6]
steps:
- uses: actions/checkout@v3
with:
repository: pmaupin/pdfrw
- uses: actions/checkout@v3
with:
repository: pmaupin/static_pdfs
path: tests/static_pdfs
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: prepare pip
run:
python -m pip install --upgrade pip wheel
- name: install package
run:
python -m pip install .
# Uses `reportlab` available during last actual release.
- name: install Python deps
run:
python -m pip install --upgrade reportlab==3.4.0 pycrypto pytest
- name: run tests
run: |
cd tests
PYTHONPATH=. pytest --verbose
- name: display result directory
if: always()
run:
tree tests/tmp_results/
- name: upload
uses: actions/upload-artifact@v3
if: always()
with:
name: python${{ matrix.python }}_results
path: |
tests/tmp_results/*