-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (46 loc) · 1.42 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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test-file-processing-ocr:
name: Test file-processing-ocr
runs-on: ubuntu-latest
steps:
- name: Check out file-processing-ocr code
uses: actions/checkout@v3
- name: Clone file-processing repository for 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 for file-processing-ocr
run: |
docker run --rm -v ${{ github.workspace }}:/app -w /app file-processing-ocr-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 for file-processing
run: |
docker run --rm file-processing-tests pytest tests/unit
docker run --rm file-processing-tests pytest tests/integration