-
Notifications
You must be signed in to change notification settings - Fork 5
103 lines (86 loc) · 2.82 KB
/
_test-integrations.yml
File metadata and controls
103 lines (86 loc) · 2.82 KB
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
name: Integration Test
on:
workflow_call:
workflow_dispatch:
env:
MINDEE_API_KEY: ${{ secrets.MINDEE_API_KEY_SE_TESTS }}
WORKFLOW_ID: ${{ secrets.WORKFLOW_ID_SE_TESTS }}
MINDEE_V2_API_KEY: ${{ secrets.MINDEE_V2_SE_TESTS_API_KEY }}
MINDEE_V2_SE_TESTS_BLANK_PDF_URL: ${{ secrets.MINDEE_V2_SE_TESTS_BLANK_PDF_URL }}
MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID }}
MINDEE_V2_SE_TESTS_CLASSIFICATION_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_CLASSIFICATION_MODEL_ID }}
MINDEE_V2_SE_TESTS_CROP_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_CROP_MODEL_ID }}
MINDEE_V2_SE_TESTS_SPLIT_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_SPLIT_MODEL_ID }}
MINDEE_V2_SE_TESTS_OCR_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_OCR_MODEL_ID }}
jobs:
run-tests-with-optional-dependencies:
name: Integration Tests With Optional Dependencies
timeout-minutes: 30
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
node-version:
- "20"
- "24"
runs-on: ${{ matrix.os }}
steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install Node.js dependencies
run: npm ci
- name: Install Poppler (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y poppler-utils
- name: Install Poppler (macOS)
if: runner.os == 'macOS'
run: |
brew update
brew install poppler
- name: Install Poppler (Windows)
if: runner.os == 'Windows'
run: choco install poppler --yes --no-progress
- name: Compilation
run: npm run build
- name: Test code
run: npm run test-integration
run-tests-without-optional-dependencies:
name: Integration Tests Without Optional Dependencies
timeout-minutes: 30
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
node-version:
- "20"
- "24"
runs-on: ${{ matrix.os }}
steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install Node.js dependencies
run: npm ci --omit=optional
- name: Compilation
run: npm run build
- name: Test code
run: npm run test-integration-light