-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (69 loc) · 2.26 KB
/
validate.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
---
name: Validate local database
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: pip install .
- name: Lint repository
run: pre-commit run --all-files
- name: Check for bad file extensions
run: invoke check-for-yaml
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: pip install .
- name: Run database ingestion tasks
run: |
invoke validate-entries
build:
runs-on: ubuntu-latest
steps:
- name: Check Docker build
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Build image
run: |
docker build . -t datatractor-yard
- name: Launch image
run: |
docker run -d --env PORT=8080 -p 8080:8080 datatractor-yard
- name: Hit registry endpoints
run: |
sleep 5
curl http://localhost:8080/api/filetypes | jq
curl http://localhost:8080/api/extractors | jq
curl http://localhost:8080/api/redoc
curl http://localhost:8080/filetypes
curl http://localhost:8080/extractors