Skip to content

Commit b7dec2c

Browse files
authored
New workflow (#6)
* lots of tricks, it is now working
1 parent e74d6c4 commit b7dec2c

21 files changed

+7324
-2827
lines changed

.Rprofile

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/build.yml

Lines changed: 15 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,22 @@
1-
name: build
1+
name: Main Workflows
22

33
on:
4-
workflow_dispatch:
54
push:
6-
branches: main
5+
branches: ["main","master"]
6+
repository_dispatch:
7+
types: [custom-event]
8+
workflow_dispatch:
9+
pull_request:
10+
branches: ["main","master"]
11+
712

813
jobs:
9-
build-and-publish:
10-
runs-on: ubuntu-latest
14+
call_env_workflow:
15+
uses: computorg/workflows/.github/workflows/global-env.yml@main
16+
call_quartopublish_workflow:
1117
permissions:
18+
id-token: write
1219
contents: write
13-
steps:
14-
- name: Checking out repository for Github action
15-
uses: actions/checkout@v3
16-
17-
- name: Installing quarto
18-
uses: quarto-dev/quarto-actions/setup@v2
19-
with:
20-
tinytex: true
21-
22-
- name: Install Computo extension for Quarto
23-
run: |
24-
quarto add --no-prompt computorg/computo-quarto-extension
25-
26-
- name: register tinytex globally for diagram.lua
27-
run: |
28-
mkdir -p ~/.local/bin
29-
~/.TinyTeX/bin/x86_64-linux/tlmgr option sys_bin ~/.local/bin
30-
~/.TinyTeX/bin/x86_64-linux/tlmgr path add
31-
~/.TinyTeX/bin/x86_64-linux/tlmgr install libertinus-fonts
32-
33-
- name: Install system dependencies
34-
run: |+
35-
sudo apt-get install libcurl4-openssl-dev libudunits2-dev libgdal-dev
36-
37-
- name: Setup R
38-
uses: r-lib/actions/setup-r@v2
39-
with:
40-
r-version: 4.2.2
41-
42-
- name: Install R Dependencies
43-
uses: r-lib/actions/setup-renv@v2
44-
with:
45-
cache-version: 1
46-
47-
- name: Install fastai
48-
run: |
49-
R -e "fastai::install_fastai()"
50-
51-
- name: Render and Publish
52-
uses: quarto-dev/quarto-actions/publish@v2
53-
with:
54-
target: gh-pages
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
pages: write
21+
uses: computorg/workflows/.github/workflows/publish-render.yml@main
22+
needs: call_env_workflow

.gitignore

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
1+
.Rproj.user
2+
.Rhistory
3+
.RData
4+
.Ruserdata
15
.Rhistory
26
.RData
7+
.Rprofile
8+
.Rproj.user
9+
10+
311
.quarto/
412
/.joblib
5-
/_extensions/
6-
published-202304-gimenez-lynx.html
7-
published-202304-gimenez-lynx.ipynb
8-
published-202304-gimenez-lynx.tex
9-
published-202301-gimenez-lynx_files/
10-
published-202301-gimenez-lynx_files/*
11-
published-202301-gimenez-lynx_files/*/
1213
/.quarto/
14+
DS_Store
15+
/.luarc.json
16+
/*_files
17+
/*_cache
18+
/_freeze
19+
_extensions/
1320

14-
.Rproj.user
21+
published-202204-gimenez-lynx.html
22+
published-202204-gimenez-lynx.pdf
23+
published-202204-gimenez-lynx.ipynb
24+
published-202204-gimenez-lynx.tex
25+
26+
_environment
27+
/.micromamba/
28+
_site/
29+
logo_notext_white.png
30+
logo_text_white.pdf
31+
/renv/

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
*A Reproducible `R` workflow integrating models in computer vision and ecological statistic*
44

5+
[![build and publish](https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/actions/workflows/build.yml/badge.svg)](https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/actions/workflows/build.yml)
6+
[![DOI:10.57750/yfm2-5f45 ](https://img.shields.io/badge/DOI-10.57750%2Fyfm2--5f45-034E79.svg)](https://doi.org/10.57750/yfm2-5f45)
7+
[![review](https://img.shields.io/badge/review-report-blue)](https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/issues?q=is%3Aopen+is%3Aissue+label%3Areview)
8+
[![SWH](https://archive.softwareheritage.org/badge/origin/https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/)](https://archive.softwareheritage.org/browse/origin/?origin_url=https://github.com/computorg/published-202204-deeplearning-occupancy-lynx)
9+
[![Creative Commons License](https://i.creativecommons.org/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)
10+
ISSN 2824-7795
11+
12+
Authors:
13+
514
- [Olivier Gimenez](https://oliviergimenez.github.io/) (CEFE, Univ Montpellier, CNRS, EPHE, IRD, Montpellier, France)
615
- Maëlis Kervellec (CEFE, Univ Montpellier, CNRS, EPHE, IRD, Montpellier, France)
716
- Jean-Baptiste Fanjul (Fédérations Départementales des Chasseurs du Jura, Arlay, France)
@@ -10,13 +19,3 @@
1019
- Yoann Bollet (Fédération Départementale des Chasseurs de l’Ain, Bourg-en-Bresse, France)
1120
- Christophe Duchamp (Office Français de la Biodiversité, Unité Espèces à enjeux, Gap, France)
1221

13-
[![build status](https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/workflows/build/badge.svg)](https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/)
14-
[![](https://img.shields.io/github/last-commit/computorg/published-202204-deeplearning-occupancy-lynx.svg)](https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/commits/main)
15-
[![HTML](https://img.shields.io/badge/article-HTML-034E79)](https://computorg.github.io/published-202204-deeplearning-occupancy-lynx/)
16-
<!-- [![PDF](https://img.shields.io/badge/article-PDF-034E79)](https://computorg.github.io/published-202204-deeplearning-occupancy-lynx/published-202204-gimenez-lynx.pdf) -->
17-
[![DOI:10.57750/yfm2-5f45 ](https://img.shields.io/badge/DOI-10.57750%2Fyfm2--5f45-034E79.svg)](https://doi.org/10.57750/yfm2-5f45)
18-
[![review 1](https://img.shields.io/badge/review-report%201-blue)](https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/issues/1)
19-
[![review 2](https://img.shields.io/badge/review-report%202-blue)](https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/issues/2)
20-
[![SWH](https://archive.softwareheritage.org/badge/origin/https://github.com/computorg/published-202204-deeplearning-occupancy-lynx/)](https://archive.softwareheritage.org/browse/origin/?origin_url=https://github.com/computorg/published-202204-deeplearning-occupancy-lynx)
21-
[![Creative Commons License](https://i.creativecommons.org/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)
22-
ISSN 2824-7795

environment.yml

Lines changed: 6 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,9 @@
1-
name: renv-python
1+
name: gimenez
22
channels:
3+
- fastai
34
- conda-forge
4-
- defaults
55
dependencies:
6-
- _libgcc_mutex=0.1=conda_forge
7-
- _openmp_mutex=4.5=2_gnu
8-
- ca-certificates=2022.12.7=ha878542_0
9-
- ld_impl_linux-64=2.40=h41732ed_0
10-
- libffi=3.4.2=h7f98852_5
11-
- libgcc-ng=12.2.0=h65d4601_19
12-
- libgomp=12.2.0=h65d4601_19
13-
- libnsl=2.0.0=h7f98852_0
14-
- libsqlite=3.40.0=h753d276_0
15-
- libstdcxx-ng=12.2.0=h46fd767_19
16-
- libzlib=1.2.13=h166bdaf_4
17-
- ncurses=6.3=h27087fc_1
18-
- openssl=3.0.7=h0b41bf4_2
19-
- pip=23.0=pyhd8ed1ab_0
20-
- python=3.7.12=hf930737_100_cpython
21-
- readline=8.1.2=h0f457ee_0
22-
- setuptools=66.1.1=pyhd8ed1ab_0
23-
- sqlite=3.40.0=h4ff8645_0
24-
- tk=8.6.12=h27826a3_0
25-
- wheel=0.38.4=pyhd8ed1ab_0
26-
- xz=5.2.6=h166bdaf_0
27-
- pip:
28-
- absl-py==1.4.0
29-
- aiohttp==3.8.3
30-
- aiosignal==1.3.1
31-
- async-timeout==4.0.2
32-
- asynctest==0.13.0
33-
- attrs==22.2.0
34-
- backcall==0.2.0
35-
- blis==0.7.9
36-
- catalogue==2.0.8
37-
- certifi==2022.12.7
38-
- charset-normalizer==2.1.1
39-
- click==8.1.3
40-
- confection==0.0.4
41-
- cycler==0.11.0
42-
- cymem==2.0.7
43-
- datasets==2.9.0
44-
- decorator==5.1.1
45-
- descartes==1.1.0
46-
- dill==0.3.6
47-
- et-xmlfile==1.1.0
48-
- fastai==2.7.10
49-
- fastcore==1.5.27
50-
- fastdownload==0.0.7
51-
- fastinference==0.0.36
52-
- fastprogress==1.0.3
53-
- filelock==3.9.0
54-
- fonttools==4.38.0
55-
- frozenlist==1.3.3
56-
- fsspec==2023.1.0
57-
- huggingface-hub==0.12.0
58-
- idna==3.4
59-
- imageio==2.25.0
60-
- importlib-metadata==6.0.0
61-
- ipython==7.34.0
62-
- jedi==0.18.2
63-
- jinja2==3.1.2
64-
- joblib==1.2.0
65-
- kiwisolver==1.4.4
66-
- kornia==0.6.8
67-
- langcodes==3.3.0
68-
- markupsafe==2.1.2
69-
- matplotlib==3.5.3
70-
- matplotlib-inline==0.1.6
71-
- mizani==0.7.3
72-
- multidict==6.0.4
73-
- multiprocess==0.70.14
74-
- murmurhash==1.0.9
75-
- networkx==2.6.3
76-
- nltk==3.8.1
77-
- numpy==1.21.6
78-
- ohmeow-blurr==1.0.5
79-
- opencv-python==4.7.0.68
80-
- openpyxl==3.0.10
81-
- packaging==23.0
82-
- palettable==3.3.0
83-
- pandas==1.3.5
84-
- parso==0.8.3
85-
- pathy==0.10.1
86-
- patsy==0.5.3
87-
- pexpect==4.8.0
88-
- pickleshare==0.7.5
89-
- pillow==9.4.0
90-
- plotly==5.13.0
91-
- plotnine==0.8.0
92-
- preshed==3.0.8
93-
- prompt-toolkit==3.0.36
94-
- ptyprocess==0.7.0
95-
- pyarrow==11.0.0
96-
- pydantic==1.10.4
97-
- pydicom==2.3.1
98-
- pygments==2.14.0
99-
- pyparsing==3.0.9
100-
- python-dateutil==2.8.2
101-
- pytz==2022.7.1
102-
- pywavelets==1.3.0
103-
- pyyaml==6.0
104-
- regex==2022.10.31
105-
- requests==2.28.2
106-
- responses==0.18.0
107-
- rouge-score==0.1.2
108-
- scikit-image==0.19.3
109-
- scikit-learn==1.0.2
110-
- scipy==1.7.3
111-
- sentencepiece==0.1.97
112-
- seqeval==1.2.2
113-
- shap==0.35.0
114-
- six==1.16.0
115-
- smart-open==6.3.0
116-
- spacy==3.5.0
117-
- spacy-legacy==3.0.12
118-
- spacy-loggers==1.0.4
119-
- srsly==2.4.5
120-
- statsmodels==0.13.5
121-
- tenacity==8.1.0
122-
- thinc==8.1.7
123-
- threadpoolctl==3.1.0
124-
- tifffile==2021.11.2
125-
- timm==0.6.12
126-
- tokenizers==0.13.2
127-
- torch==1.9.0+cpu
128-
- torchaudio==0.9.0
129-
- torchvision==0.10.0+cpu
130-
- tqdm==4.64.1
131-
- traitlets==5.9.0
132-
- transformers==4.26.0
133-
- typer==0.7.0
134-
- typing-extensions==4.4.0
135-
- urllib3==1.26.14
136-
- wasabi==1.1.1
137-
- wcwidth==0.2.6
138-
- xlrd==2.0.1
139-
- xxhash==3.2.0
140-
- yarl==1.8.2
141-
- zipp==3.12.0
142-
prefix: renv-python
6+
- jupyter
7+
- jupyter-cache
8+
- fastai
9+

img/conditional_occ_penalized.png

-3.49 KB
Loading

img/marginal_occ_penalized.png

961 Bytes
Loading

includes/banner.html

Whitespace-only changes.

includes/metrics.html

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)