forked from pdfarranger/pdfarranger
-
Notifications
You must be signed in to change notification settings - Fork 0
114 lines (114 loc) · 4.19 KB
/
install.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: pdfarranger
on:
push:
branches: [ main ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
PDFARRANGER_COVERAGE: 1
steps:
- name: Install APT packages
run: sudo apt-get -y install gettext appstream python3-dogtail desktop-file-utils xvfb gir1.2-poppler-0.18
- uses: actions/checkout@v3
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install
run: pip3 install --upgrade .[image] coverage
- name: AppStream
run: appstreamcli validate $HOME/.local/share/metainfo/com.github.jeromerobert.pdfarranger.metainfo.xml
- name: Validate Desktop File
run: desktop-file-validate $HOME/.local/share/applications/com.github.jeromerobert.pdfarranger.desktop
- name: Dogtail Tests and Coverage
run: python3 -X tracemalloc -u -m unittest -v -f tests.test
- name: Exporter Tests and Coverage
run: python3 -m coverage run --data-file=.coverage.exporter -m unittest -v -f tests.test_exporter
- name: Core Tests and Coverage
run: python3 -m coverage run --data-file=.coverage.core -m unittest -v -f tests.test_core
- name: Combine Coverage
run: python3 -m coverage combine
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
build-pikepdf-4:
runs-on: ubuntu-latest
# PikePDF 4.4.1
container: jeromerobert/pdfarranger-docker-ci:1.4.1
env:
PDFARRANGER_COVERAGE: 1
steps:
- uses: actions/checkout@v3
- name: Install
run: pip3 install .[image]
- name: AppStream
run: appstreamcli validate /usr/share/metainfo/com.github.jeromerobert.pdfarranger.metainfo.xml
- name: Validate Desktop File
run: desktop-file-validate /usr/share/applications/com.github.jeromerobert.pdfarranger.desktop
- name: Dogtail Tests and Coverage
run: python3 -X tracemalloc -u -m unittest -v -f tests.test
- name: Exporter Tests and Coverage
run: python3 -m coverage run --data-file=.coverage.exporter -m unittest -v -f tests.test_exporter
- name: Core Tests and Coverage
run: python3 -m coverage run --data-file=.coverage.core -m unittest -v -f tests.test_core
- name: Combine Coverage
run: python3 -m coverage combine
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
build-pikepdf-6:
runs-on: ubuntu-latest
# PikePDF 6.0.1
container: jeromerobert/pdfarranger-docker-ci:1.5.0
env:
PDFARRANGER_COVERAGE: 1
steps:
- uses: actions/checkout@v3
- name: Install
run: pip3 install .[image]
- name: Dogtail Tests and Coverage
run: python3 -X tracemalloc -u -m unittest -v -f tests.test
- name: Exporter Tests and Coverage
run: python3 -m coverage run --data-file=.coverage.exporter -m unittest -v -f tests.test_exporter
- name: Core Tests and Coverage
run: python3 -m coverage run --data-file=.coverage.core -m unittest -v -f tests.test_core
- name: Combine Coverage
run: python3 -m coverage combine
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
build-pikepdf-1:
runs-on: ubuntu-latest
# PikePDF 1.19
container: jeromerobert/pdfarranger-docker-ci:1.3.1
steps:
- uses: actions/checkout@v3
- name: Install
run: pip3 install .[image]
- name: Tests
run: python3 -X tracemalloc -u -m unittest discover -v -f -s tests
build-win32:
runs-on: ubuntu-latest
container:
image: jeromerobert/wine-mingw64:1.8.1
options: --user root
steps:
- uses: actions/checkout@v3
- run: ./setup.py build
- run: HOME=/root wine python setup_win32.py bdist_msi
- run: HOME=/root wine python setup_win32.py bdist_zip
- uses: actions/upload-artifact@v3
with:
name: pdfarranger-windows-installer-msi
path: dist/*.msi
- uses: actions/upload-artifact@v3
with:
name: pdfarranger-windows-portable-zip
path: dist/*.zip
rpmbuild:
runs-on: ubuntu-latest
container: dreua/pdfarranger-docker-rpm
steps:
- name: RPM Build
run: /pdfarranger/pdfarranger-build
- uses: actions/upload-artifact@v3
with:
name: pdfarranger-fedora-testbuild
path: /github/home/rpmbuild/**/*.rpm