Skip to content
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

semver(datasets): v0.2.1 #250

Merged
merged 5 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Monorepo tests
name: Testing

on:
schedule:
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/Doc-Fauxcurrences.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/Doc-GBIF.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/Doc-Phylopic.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/Doc-SimpleSDMDatasets.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/Doc-SimpleSDMLayers.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/Doc-SpeciesDistributionToolkit.yml

This file was deleted.

140 changes: 140 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
name: Documentation

on:
push:
branches:
- main
tags: '*'
pull_request:

jobs:
GBIF:
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
working-directory: GBIF/
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=GBIF/docs/ GBIF/docs/make.jl
Phylopic:
needs: [GBIF]
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
working-directory: Phylopic/
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=Phylopic/docs/ Phylopic/docs/make.jl
Fauxcurrences:
needs: [Phylopic]
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
working-directory: Fauxcurrences/
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=Fauxcurrences/docs/ Fauxcurrences/docs/make.jl
SimpleSDMLayers:
needs: [Fauxcurrences]
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
working-directory: SimpleSDMLayers/
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=SimpleSDMLayers/docs/ SimpleSDMLayers/docs/make.jl
SimpleSDMDatasets:
needs: [SimpleSDMLayers]
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
working-directory: SimpleSDMDatasets/
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=SimpleSDMDatasets/docs/ SimpleSDMDatasets/docs/make.jl
SpeciesDistributionToolkit:
needs: [SimpleSDMDatasets]
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make.jl
2 changes: 1 addition & 1 deletion .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
ssh: ${{ secrets.DOCUMENTER_KEY }}
subdir: SimpleSDMLayers
- name: Tag SSD
uses: JuliaRegistries/TagBot@v1
uses: IanButterworth/TagBot@ib/is_backport_monorepo
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion SimpleSDMDatasets/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SimpleSDMDatasets"
uuid = "2c7d61d0-5c73-410d-85b2-d2e7fbbdcefa"
authors = ["Timothée Poisot <[email protected]>"]
version = "0.2.0"
version = "0.2.1"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ downloadtype(::RasterData{BiodiversityMapping, T}) where {T <: BiodivMap} = _zip

destination(::RasterData{BiodiversityMapping, T}; kwargs...) where {T <: BiodivMap} = joinpath(SimpleSDMDatasets._LAYER_PATH, string(BiodiversityMapping))

url(::RasterData{BiodiversityMapping, T}) where {T <: BiodivMap} = "https://biodiversitymapping.org/"

_var_slug(::RasterData{BiodiversityMapping, T}) where {T <: BiodivMap} = "richness"

layers(::RasterData{BiodiversityMapping, MammalRichness}) = ["Mammals", "Carnivora", "Cetartiodactyla", "Chiroptera", "Eulipotyphla", "Marsupialia", "Primates", "Rodentia"]
layers(::RasterData{BiodiversityMapping, AmphibianRichness}) = ["Amphibians", "Anura", "Caudata", "Gymnophiona"]
layers(::RasterData{BiodiversityMapping, BirdRichness}) = ["Birds", "Passeriformes", "Psittaciformes", "Trochilidae"]
Expand Down
10 changes: 4 additions & 6 deletions SimpleSDMLayers/docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ makedocs(;
sitename = "SimpleSDMLayers",
format = Documenter.HTML(),
warnonly = true,
modules = [SimpleSDMLayers, Statistics],
modules = [SimpleSDMLayers],
pages = [
"SimpleSDMLayers.jl" => "index.md",
"Layer data representation" => "types.md",
"Basic information on layers" => "basics.md",
"Operations on layers" => "operations.md",
"Overloads" => "overloads.md",
"index.md",
"types.md",
"operations.md",
],
)

Expand Down
Loading
Loading