Skip to content

Commit 90e3e32

Browse files
authored
Merge pull request #149 from darribas/ci_setup
Ci setup
2 parents c4dd051 + 1c0d657 commit 90e3e32

File tree

11 files changed

+3385
-508
lines changed

11 files changed

+3385
-508
lines changed

.github/workflows/test_book.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Test Book
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
9+
Test:
10+
name: ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Setup Conda
20+
uses: conda-incubator/setup-miniconda@v2
21+
with:
22+
auto-update-conda: true
23+
auto-activate-base: true
24+
25+
- name: Set up GDS Env
26+
shell: bash -l {0}
27+
run: |
28+
conda update -y -n base -c defaults conda
29+
conda --version
30+
conda env create -f https://github.com/darribas/gds_env/raw/v6.0post1/gds_py/gds_py.yml
31+
conda activate gds
32+
pip install -r https://github.com/darribas/gds_env/raw/v6.0post1/gds_py/gds_py_pip.txt
33+
- name: Check and Log Environment
34+
shell: bash -l {0}
35+
run: |
36+
conda activate gds
37+
conda info
38+
# Print conda list
39+
conda list
40+
41+
- name: Run Tests
42+
shell: bash -l {0}
43+
continue-on-error: false
44+
run: |
45+
conda activate gds
46+
make test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ pdf/*
1212
tmp_book/
1313
*/*/NASADEM_HGT*
1414
*/*/*.hgt
15+
notebooks/cache
16+
tests/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM darribas/gds_py:5.0
1+
FROM darribas/gds_py:6.0
22

33
# Local docs
44
RUN rm -R work/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Repository for the book "Geographic Data Science with PySAL and the pydata
44
Stack"
55

6+
[![Build Jupyter book](https://github.com/gdsbook/book/actions/workflows/build_website.yml/badge.svg?branch=master)](https://github.com/gdsbook/book/actions/workflows/build_website.yml)
67

78
## Table of Contents
89

infrastructure/ga_environment.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,7 @@ channels:
55
- default
66
- conda-forge
77
dependencies:
8-
- python=3.7.*
9-
- jupytext=1.5.2
10-
- pip=20.2.4
11-
- nbconvert=5.6.1
12-
- nbformat=5.0.7
8+
- jupytext
139
- pip:
14-
- jupyter-book==0.7.3
15-
- jupyter-sphinx==0.2.4
16-
- myst-nb==0.8.4
17-
- myst-parser==0.9.1
18-
- sphinx==3.1.2
19-
- sphinx-automodapi==0.12
20-
- sphinx-book-theme==0.0.33
21-
- sphinx-copybutton==0.3.0
22-
- sphinx-press-theme==0.5.1
23-
- sphinx-thebe==0.0.7
24-
- sphinx-togglebutton==0.2.0
25-
- sphinxcontrib-applehelp==1.0.2
26-
- sphinxcontrib-bibtex==1.0.0
27-
- sphinxcontrib-devhelp==1.0.2
28-
- sphinxcontrib-htmlhelp==1.0.3
29-
- sphinxcontrib-jsmath==1.0.1
30-
- sphinxcontrib-qthelp==1.0.3
31-
- sphinxcontrib-serializinghtml==1.1.4
10+
- jupyter-book
11+

notebooks/03_spatial_data.ipynb

Lines changed: 2692 additions & 138 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)