- 
                Notifications
    You must be signed in to change notification settings 
- Fork 43
[Done] Replace appveyor with gh actions #382
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
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            45 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      b65fd03
              
                Replace appveyor with gh actions
              
              
                caspervdw b18dafe
              
                Quotes
              
              
                caspervdw a8a463c
              
                Fix build matrix
              
              
                caspervdw f66a2cc
              
                Try bash shell
              
              
                caspervdw dd33fbc
              
                Integrate windows into linux workflow
              
              
                caspervdw eef5307
              
                Adapt build script
              
              
                caspervdw ec3a484
              
                Fix script and prune cache
              
              
                caspervdw 5487f74
              
                Fix
              
              
                caspervdw d36570e
              
                Add osx
              
              
                caspervdw e9b531f
              
                Simplify conda and move doctest to pip
              
              
                caspervdw 2efc541
              
                Attempt fix
              
              
                caspervdw eb6ed0d
              
                Update install_geos.sh
              
              
                caspervdw e79ed8c
              
                Update install_geos.sh
              
              
                caspervdw ee20b71
              
                Update install_geos.sh
              
              
                caspervdw 89ecb14
              
                Update install_geos.sh
              
              
                caspervdw 4912edc
              
                Update install_geos.sh
              
              
                caspervdw 88cf878
              
                Update test-pip.yml
              
              
                caspervdw 946a001
              
                Backslashes ...
              
              
                caspervdw 0a020af
              
                Retry slash replacement
              
              
                caspervdw 8cd9a34
              
                Fix
              
              
                caspervdw 8005421
              
                Update install_geos.sh
              
              
                caspervdw b7dc701
              
                Revert to 3.8.1
              
              
                caspervdw 0b6102b
              
                Update test-pip.yml
              
              
                caspervdw cdabbf0
              
                Update test-pip.yml
              
              
                caspervdw 2f7b395
              
                Update test-pip.yml
              
              
                caspervdw d8e6661
              
                Update setup.py
              
              
                caspervdw 9852039
              
                Python or GEOS issue?
              
              
                caspervdw 990c286
              
                Also bump numpy
              
              
                caspervdw ddfcedf
              
                Revert [ci skip]
              
              
                caspervdw b35e320
              
                Maybe numpy is the problem
              
              
                caspervdw 671d458
              
                Update test-pip.yml
              
              
                caspervdw 9966bf0
              
                Update test-pip.yml
              
              
                caspervdw e4f0015
              
                Update test-pip.yml
              
              
                caspervdw 945513d
              
                Update test-pip.yml
              
              
                caspervdw e6cf279
              
                Update test-pip.yml
              
              
                caspervdw 0d858bb
              
                Update test-pip.yml
              
              
                caspervdw cc4ab51
              
                Update test-conda.yml
              
              
                caspervdw 6a86b1c
              
                PR Change
              
              
                caspervdw 620a045
              
                Add comment and clean osx setting
              
              
                caspervdw d2ea4e0
              
                Include 32-bit windows
              
              
                caspervdw 10589f9
              
                Remove conda actions runner [skip ci]
              
              
                caspervdw 6c3a1a7
              
                Adapt name [skip ci]
              
              
                caspervdw 31b4773
              
                Set up matrix differently
              
              
                caspervdw 333ca92
              
                Enable only 2 windows 32 builds
              
              
                caspervdw a67004e
              
                Fix badges [skip ci]
              
              
                caspervdw File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      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
    
  
  
    
              This file was deleted.
      
      Oops, something went wrong.
      
    
  This file was deleted.
      
      Oops, something went wrong.
      
    
  
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| name: Test | ||
|  | ||
| on: [push, pull_request] | ||
|  | ||
| jobs: | ||
| TestLinux: | ||
| name: ${{ matrix.os }}-${{ matrix.architecture }} Py${{ matrix.python }} GEOS ${{ matrix.geos }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-2019] | ||
| architecture: [x64] | ||
| geos: [3.6.4, 3.7.3, 3.8.1, 3.9.1, main] | ||
| include: | ||
| # 2017 | ||
| - python: 3.6 | ||
| geos: 3.6.4 | ||
| numpy: 1.13.3 | ||
| # 2018 | ||
| - python: 3.7 | ||
| geos: 3.7.3 | ||
| numpy: 1.15.4 | ||
| # 2019 | ||
| - python: 3.8 | ||
| geos: 3.8.1 | ||
| numpy: 1.17.5 | ||
| # 2020 | ||
| - python: 3.9 | ||
| geos: 3.9.1 | ||
| numpy: 1.19.5 | ||
| # dev | ||
| - python: 3.9 | ||
| geos: main | ||
| # enable two 32-bit windows builds: | ||
| - os: windows-2019 | ||
| architecture: x86 | ||
| python: 3.6 | ||
| geos: 3.6.4 | ||
| numpy: 1.13.3 | ||
| - os: windows-2019 | ||
| architecture: x86 | ||
| python: 3.9 | ||
| geos: 3.9.1 | ||
| numpy: 1.19.5 | ||
|  | ||
| env: | ||
| GEOS_VERSION: ${{ matrix.geos }} | ||
| GEOS_INSTALL: ${{ github.workspace }}/geosinstall/geos-${{ matrix.geos }} | ||
|  | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|  | ||
| - name: Set up Python ${{ matrix.python }} | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| architecture: ${{ matrix.architecture }} | ||
|  | ||
| - name: Cache GEOS and pip packages | ||
| uses: actions/cache@v2 | ||
| with: | ||
| key: ${{ matrix.os }}-${{ matrix.architecture }}-geos-${{ matrix.geos }} | ||
| path: | | ||
| ~/.cache/pip | ||
| ${{ github.workspace }}/geosinstall | ||
|  | ||
| - name: Activate MSVC | ||
| uses: ilammy/msvc-dev-cmd@v1 | ||
| with: | ||
| arch: ${{ matrix.architecture }} | ||
| if: ${{ matrix.os == 'windows-2019' }} | ||
|  | ||
| - name: Correct slashes in GEOS_INSTALL (Windows) | ||
| shell: bash | ||
| run: | | ||
| echo 'GEOS_INSTALL=${{ github.workspace }}\geosinstall\geos-${{ matrix.geos }}' >> $GITHUB_ENV | ||
| if: ${{ matrix.os == 'windows-2019' }} | ||
|  | ||
| - name: Install GEOS | ||
| shell: bash | ||
| run: | | ||
| ./ci/install_geos.sh | ||
| cd '${{ github.workspace }}' | ||
|  | ||
| - name: Install python dependencies | ||
| shell: bash | ||
| run: | | ||
| pip install --disable-pip-version-check --upgrade pip | ||
| pip install --upgrade wheel setuptools | ||
| if [ "$GEOS_VERSION" = "main" ]; then | ||
| pip install --upgrade --pre Cython numpy pytest; | ||
| else | ||
| pip install --upgrade Cython numpy==${{ matrix.numpy }} pytest; | ||
| fi | ||
| pip list | ||
|  | ||
| - name: Set environment variables (Linux) | ||
| shell: bash | ||
| run: | | ||
| echo "${{ env.GEOS_INSTALL }}/bin" >> $GITHUB_PATH | ||
| echo "LD_LIBRARY_PATH=${{ env.GEOS_INSTALL }}/lib" >> $GITHUB_ENV | ||
| if: ${{ matrix.os == 'ubuntu-latest' }} | ||
|  | ||
| - name: Set environment variables (OSX) | ||
| shell: bash | ||
| run: | | ||
| echo "${{ env.GEOS_INSTALL }}/bin" >> $GITHUB_PATH | ||
| echo "LDFLAGS=-Wl,-rpath,${{ env.GEOS_INSTALL }}/lib" >> $GITHUB_ENV | ||
| if: ${{ matrix.os == 'macos-latest' }} | ||
|  | ||
| # Python >=3.8 ignores the PATH for finding DLLs. We copy them into the package dir. | ||
| - name: Set environment variables + copy DLLs (Windows) | ||
| shell: bash | ||
| run: | | ||
| cp geosinstall/geos-${{ matrix.geos }}/bin/*.dll pygeos | ||
| echo 'GEOS_LIBRARY_PATH=${{ env.GEOS_INSTALL }}\lib' >> $GITHUB_ENV | ||
| echo 'GEOS_INCLUDE_PATH=${{ env.GEOS_INSTALL }}\include' >> $GITHUB_ENV | ||
| if: ${{ matrix.os == 'windows-2019' }} | ||
|  | ||
| - name: Build PyGEOS | ||
| shell: bash | ||
| run: | | ||
| python setup.py build_ext --inplace | ||
| pip install --no-deps -e . | ||
|  | ||
| - name: Run tests | ||
| shell: bash | ||
| continue-on-error: ${{ matrix.geos == 'main' }} | ||
| run: | | ||
| pytest pygeos | ||
|  | ||
| - name: Run doctests | ||
| shell: bash | ||
| run: | | ||
| pytest --doctest-modules pygeos --ignore=pygeos/tests | ||
| if: ${{ matrix.os == 'ubuntu-latest' && matrix.python == '3.8' }} | ||
  
    
      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
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.