Skip to content

Commit

Permalink
Added workflow to compare rcoins to momepy on pull request.
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsvl committed Jan 16, 2025
1 parent 709bf80 commit 5af571a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 22 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/compare_momepy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Workflow derived from https://github.com/marketplace/actions/setup-miniconda#example-3-other-options
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
name: Compare to momepy
on: [pull_request]

jobs:
compare-momepy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4

- name: Set up conda environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: anaconda-client-env
environment-file: environment.yml
python-version: 3.13
auto-activate-base: false
- name: Install momepy dependencies
run: |
conda install geopandas momepy pytest
conda info
conda list
- name: Compare rcoins output to momepy output
run: |
Rscript -e 'devtools::install()'
Rscript scripts/compare_momepy/prepare-test-stroke.R
python -m pytest -v
22 changes: 0 additions & 22 deletions scripts/compare_momepy/environment.yml

This file was deleted.

0 comments on commit 5af571a

Please sign in to comment.