Update README.md #309
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
# Workflow for using the makefile to create containers and run tests | |
name: Makefile CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the project | |
uses: actions/checkout@v3 | |
- name: Sign the EULA | |
run: make etc/VerticaPyLab.conf; echo "VERTICA_EULA=1" >> etc/VerticaPyLab.conf | |
- name: Create a Vertica container | |
run: make vertica-install | |
- name: Make sure errors happen when building "latest" | |
run: bash -ec "! make verticapylab-build" | |
- name: Create a VerticaPyLab container | |
run: sed -i s/#VERTICAPYLAB_IMG_VERSION=latest/VERTICAPYLAB_IMG_VERSION=v0.0/ etc/VerticaPyLab.conf && make verticapylab-build | |
- name: Run the VerticaPyLab container | |
run: make verticapylab-start | |
- name: Create and run a grafana container | |
run: make grafana-start | |
- name: Vertica up and functional | |
run: make vsql | |
- name: VerticaPyLab can connect to vertica | |
run: docker exec -i verticapylab vsql -c "select version();" | |
- name: Run tests | |
run: make test | |
- name: stop vertica | |
run: make vertica-stop | |
- name: stop verticapylab | |
run: make verticapylab-stop | |
- name: uninstall vertica | |
run: make vertica-uninstall | |
- name: uninstall grafana | |
run: make grafana-uninstall | |
- name: uninstall verticapylab | |
run: make verticapylab-uninstall |