-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (84 loc) · 3.08 KB
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test-file-processing-analytics:
name: Test file-processing-analytics
runs-on: ubuntu-latest
steps:
- name: Clone file-processing-analytics repository
uses: actions/checkout@v3
with:
repository: hc-sc-ocdo-bdpd/file-processing-analytics
path: file-processing-analytics
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10.4
- name: Build Docker image for file-processing-analytics
run: |
cd file-processing-analytics
docker build -t file-processing-analytics-tests .
- name: Run tests in Docker container for file-processing-analytics
run: |
docker run --rm file-processing-analytics-tests pytest tests
test-file-processing-ocr:
name: Test file-processing-ocr
runs-on: ubuntu-latest
steps:
- name: Clone file-processing-ocr repository
uses: actions/checkout@v3
with:
repository: hc-sc-ocdo-bdpd/file-processing-ocr
path: file-processing-ocr
- name: Clone file-processing repository to get Dockerfile
run: git clone https://github.com/hc-sc-ocdo-bdpd/file-processing.git
- name: Build Docker image for file-processing-ocr
run: |
docker build -t file-processing-ocr-tests ./file-processing
- name: Run tests in Docker container for file-processing-ocr
run: |
docker run --rm -v ${{ github.workspace }}/file-processing-ocr:/app -w /app file-processing-ocr-tests pytest tests
test-file-processing-transcription:
name: Test file-processing-transcription
runs-on: ubuntu-latest
steps:
- name: Clone file-processing-transcription repository
uses: actions/checkout@v3
with:
repository: hc-sc-ocdo-bdpd/file-processing-transcription
path: file-processing-transcription
- name: Clone file-processing repository to get Dockerfile
run: git clone https://github.com/hc-sc-ocdo-bdpd/file-processing.git
- name: Build Docker image for file-processing-transcription
run: |
docker build -t file-processing-transcription-tests ./file-processing
- name: Run tests in Docker container for file-processing-transcription
run: |
docker run --rm -v ${{ github.workspace }}/file-processing-transcription:/app -w /app file-processing-transcription-tests pytest tests
test-file-processing:
name: Test file-processing
runs-on: ubuntu-latest
steps:
- name: Clone file-processing repository
uses: actions/checkout@v3
with:
repository: hc-sc-ocdo-bdpd/file-processing
path: file-processing
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10.4
- name: Build Docker image for file-processing
run: |
cd file-processing
docker build -t file-processing-tests .
- name: Run tests in Docker container for file-processing
run: |
docker run --rm file-processing-tests pytest tests/unit