Move zip file to Git LFS tracking #5
This file contains hidden or 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: | ||
| branches: | ||
| - main | ||
| tags: ['*'] | ||
| pull_request: | ||
| jobs: | ||
| test: | ||
| name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| version: | ||
| - '1.6' # Minimum supported Julia version | ||
| - '1' # Latest stable 1.x release | ||
| os: | ||
| - ubuntu-latest | ||
| arch: | ||
| - x64 | ||
| exclude: | ||
| # ARM64/Silicon is only supported on macOS | ||
| - os: ubuntu-latest | ||
| arch: aarch64 | ||
| - os: windows-latest | ||
| arch: aarch64 | ||
| # Other exclusions as needed | ||
| - os: macOS-latest | ||
| arch: x86 - aarch64 macOS-latest | ||
| services: | ||
| postgres: | ||
| image: postgis/postgis:13-3.1 | ||
| env: | ||
| POSTGRES_PASSWORD: "" | ||
| POSTGRES_USER: "" | ||
| POSTGRES_DB: tiger | ||
| ports: | ||
| - 5432:5432 | ||
| options: >- | ||
| --health-cmd pg_isready | ||
| --health-interval 10s | ||
| --health-timeout 5s | ||
| --health-retries 5 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: julia-actions/setup-julia@v1 | ||
| with: | ||
| version: ${{ matrix.version }} | ||
| arch: ${{ matrix.arch }} | ||
| - uses: julia-actions/cache@v1 | ||
| - uses: julia-actions/julia-buildpkg@v1 | ||
| - name: Create census schema and tables | ||
| run: | | ||
| PGPASSWORD=postgres psql -h localhost -d tiger -c "CREATE SCHEMA IF NOT EXISTS census;" | ||
| PGPASSWORD=postgres psql -h localhost -d tiger -c " | ||
| CREATE TABLE IF NOT EXISTS census.counties ( | ||
| geoid VARCHAR(5) PRIMARY KEY, | ||
| name VARCHAR(100), | ||
| stusps VARCHAR(2), | ||
| geom GEOMETRY(MultiPolygon, 4269) | ||
| );" | ||
| - name: Set environment variables | ||
| run: | | ||
| echo "GEOIDS_DB_NAME=geocoder" >> $GITHUB_ENV | ||
| echo "GEOIDS_DB_HOST=localhost" >> $GITHUB_ENV | ||
| echo "GEOIDS_DB_PORT=5432" >> $GITHUB_ENV | ||
| echo "GEOIDS_DB_USER=postgres" >> $GITHUB_ENV | ||
| echo "GEOIDS_DB_PASSWORD=postgres" >> $GITHUB_ENV | ||
| - uses: julia-actions/julia-runtest@v1 | ||
| env: | ||
| GEOIDS_DB_NAME: geocoder | ||
| GEOIDS_DB_HOST: localhost | ||
| GEOIDS_DB_PORT: 5432 | ||
| GEOIDS_DB_USER: "" | ||
| GEOIDS_DB_PASSWORD: "" | ||
| - uses: julia-actions/julia-processcoverage@v1 | ||
| - uses: codecov/codecov-action@v2 | ||
| with: | ||
| file: lcov.info | ||