Document not found (404)
+This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..59cb89c5 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,36 @@ +# https://github.com/rust-lang/mdBook/wiki/Automated-Deployment%3A-GitHub-Actions#github-pages-deploy +name: Deploy +on: + push: + branches: + - doc/onboarding + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Install mdbook + run: | + mkdir mdbook + curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook + echo `pwd`/mdbook >> $GITHUB_PATH + - name: Deploy GitHub Pages + run: | + # This assumes your book is in the root of your repository. + # Just add a `cd` here if you need to change to another directory. + cd docs + mdbook build + git worktree add gh-pages gh-pages + git config user.name "Deploy from CI" + git config user.email "" + cd gh-pages + # Delete the ref to avoid keeping history. + git update-ref -d refs/heads/gh-pages + rm -rf * + mv ../book/* . + git add . + git commit -m "Deploy $GITHUB_SHA to gh-pages" + git push --force \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..2644e3b7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,53 @@ +name: Run tests + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Get osmium-tool dependencies + run: | + sudo apt install build-essential cmake libboost-program-options-dev \ + libexpat1-dev zlib1g-dev libbz2-dev + git clone https://github.com/mapbox/protozero + git clone --branch v2.17.1 --depth 1 https://github.com/osmcode/libosmium + git clone --branch v1.13.2 --depth 1 https://github.com/osmcode/osmium-tool + + - name: Cache osmium-tool + id: cache-osmium-tool + uses: actions/cache@v2 + with: + path: osmium-tool/build + key: osmium-v1.13.2-libosmium-v2.17.1-cache_bust-v2 + + - name: Build osmium-tool + if: steps.cache-osmium-tool.outputs.cache-hit != 'true' + run: | + cd osmium-tool + mkdir build + cd build + cmake .. + make + cd ../.. + + - name: Set up Python (Miniconda) + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: '3.9' + environment-file: workflow/envs/environment.yml + + - name: Test with pytest + # Bash shells do not use ~/.profile or ~/.bashrc so these shells + # need to be explicitely declared as shell: bash -l {0} on steps + # that need to be properly activated. See + # https://github.com/marketplace/actions/setup-miniconda#IMPORTANT + shell: bash -l {0} + run: | + export PATH="$PATH:$(pwd)/osmium-tool/build" + osmium --version + python -m pytest tests diff --git a/.snakemake-workflow-catalog.yml b/.snakemake-workflow-catalog.yml new file mode 100644 index 00000000..13ec1c75 --- /dev/null +++ b/.snakemake-workflow-catalog.yml @@ -0,0 +1,7 @@ +usage: + software-stack-deployment: # definition of software deployment method (at least one of conda, singularity, or singularity+conda) + conda: false # whether pipeline works with --use-conda + singularity: false # whether pipeline works with --use-singularity + singularity+conda: false # whether pipeline works with --use-singularity --use-conda + report: false # add this to confirm that the workflow allows to use 'snakemake --report report.zip' to generate a report containing all results and explanations + diff --git a/404.html b/404.html new file mode 100644 index 00000000..4f922424 --- /dev/null +++ b/404.html @@ -0,0 +1,167 @@ + + +
+ + +This URL is invalid, sorry. Please use the navigation bar or search to continue.
+ +This open-source snakemake +workflow can be used to analyse environmental risks to infrastructure +networks using global open data.
+We can use open-gira
to analyse open data on roads, railways and
+their exposure to river flooding, or electricity transmission lines and how
+they're affected by tropical cyclones.
open-gira
is a work in progress.