Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CI infrastructure for fiadb unit tests #23

Open
hrodmn opened this issue Jan 31, 2023 · 0 comments
Open

add CI infrastructure for fiadb unit tests #23

hrodmn opened this issue Jan 31, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@hrodmn
Copy link
Contributor

hrodmn commented Jan 31, 2023

Will look something like this:

curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

apt update && apt install -y postgresql-12 pgloader postgis postgresql-12-postgis-3
# spin up local postgresql database
sudo service postgresql start
sudo -u postgres psql -c "DROP DATABASE IF EXISTS testfiadb;"
sudo -u postgres createdb testfiadb
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'password';"
sudo -u postgres psql -d testfiadb -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;"
cd $GITHUB_WORKSPACE/fiadb
pytest
@hrodmn hrodmn added the enhancement New feature or request label Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant