-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (41 loc) · 1.18 KB
/
_test-cli.yml
File metadata and controls
47 lines (41 loc) · 1.18 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
name: CLI Test
on:
workflow_call:
workflow_dispatch:
env:
MINDEE_API_KEY: ${{ secrets.MINDEE_API_KEY_SE_TESTS }}
MINDEE_V2_API_KEY: ${{ secrets.MINDEE_V2_SE_TESTS_API_KEY }}
MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID }}
jobs:
test:
name: Run Tests
timeout-minutes: 30
strategy:
max-parallel: 4
matrix:
os_config:
- os: "ubuntu-24.04"
rid: "linux-x64"
- os: "macos-latest"
rid: "osx-x64"
- os: "windows-latest"
rid: "win-x64"
ruby:
- "3.2"
- "4.0"
runs-on: ${{ matrix.os_config.os }}
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- name: set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Tests V2 CLI
run: |
./spec/test_v2_cli.sh ./spec/data/file_types/pdf/blank_1.pdf ${{ matrix.os_config.rid }}
- name: Tests V1 CLI
run: |
./spec/test_v1_cli.sh ./spec/data/file_types/pdf/blank_1.pdf ${{ matrix.os_config.rid }}