refactor: use monorepo structure #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |