Skip to content

Commit

Permalink
TST: rename head branch for GEOS from 'master' to 'main' (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Jun 9, 2021
1 parent 3fa59c7 commit cec21ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
numpy: 1.19.5
# dev
- python: 3.9
geos: master
geos: main

env:
GEOS_VERSION: ${{ matrix.geos }}
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
pip install --disable-pip-version-check --upgrade pip
pip install --upgrade wheel
if [ "$GEOS_VERSION" = "master" ]; then
if [ "$GEOS_VERSION" = "main" ]; then
pip install --upgrade --pre Cython numpy pytest;
else
pip install --upgrade Cython numpy==${{ matrix.numpy }} pytest;
Expand All @@ -82,6 +82,6 @@ jobs:
- name: Run tests
shell: bash
continue-on-error: ${{ matrix.geos == 'master' }}
continue-on-error: ${{ matrix.geos == 'main' }}
run: |
pytest pygeos
5 changes: 3 additions & 2 deletions ci/install_geos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# This script requires environment variables to be set
# - export GEOS_INSTALL=/path/to/cached/prefix -- to build or use as cache
# - export GEOS_VERSION=3.7.3 or master -- to download and compile
# - export GEOS_VERSION=3.7.3 or main -- to download and compile

set -e

Expand Down Expand Up @@ -38,11 +38,12 @@ build_geos(){
make install
}

if [ "$GEOS_VERSION" = "master" ]; then
if [ "$GEOS_VERSION" = "main" ]; then
prepare_geos_build_dir
# use GitHub mirror
git clone --depth 1 https://github.com/libgeos/geos.git geos-$GEOS_VERSION
cd geos-$GEOS_VERSION
git log -1
git rev-parse HEAD > newrev.txt
BUILD=no
# Only build if nothing cached or if the GEOS revision changed
Expand Down

0 comments on commit cec21ae

Please sign in to comment.