-
Notifications
You must be signed in to change notification settings - Fork 179
54 lines (39 loc) · 1.14 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
name: CI
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Verify Docker installation
run: |
docker --version
docker info
- name: Build Docker image
run: make docker-build
- name: Run Docker container
run: make docker-run
- name: Build
run: docker exec pgai make build
- name: Lint SQL and Python
run: docker exec pgai make lint
#- name: Check Python Formatting
# run: docker exec pgai make format-py
- name: Install extension and vectorizer
run: |
docker exec pgai make install
docker exec pgai make install-vec
- name: Run test server
run: docker exec -d pgai make test-server
- name: Run tests
run: docker exec pgai make test
- name: Stop and remove Docker container
run: |
make docker-stop
make docker-rm