-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (46 loc) · 1.2 KB
/
build.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
name: Install and Test
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-linux:
defaults:
run:
# Ensures environment gets sourced right
shell: bash -e -l {0}
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Add /etc/hosts entries
run: |
cat .github/workflows/etchosts.txt | sudo tee -a /etc/hosts
# setup conda-forge with micromamba
- name: Setup Python
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
condarc: |
channels:
- conda-forge
- defaults
create-args: >-
python=3.12
environment-name: prod
cache-environment: true
- name: Do Work
run: |
set -x
git clone --depth 1 https://github.com/akrherz/ci_tooling.git .ci_tooling
cd .ci_tooling
. postgres.sh
cd ..
psql -c 'CREATE ROLE runner SUPERUSER LOGIN CREATEDB;' -U postgres || true
sh bootstrap.sh
psql -f data/postgis/cwsu.db -U mesonet postgis
python schema_manager.py
python store_test_data.py $(which psql)