Skip to content

Commit 3f212d8

Browse files
authored
Merge pull request #5 from InseeFrLab/maj-25
Maj 25
2 parents ad8402f + e7631ae commit 3f212d8

File tree

3 files changed

+195
-203
lines changed

3 files changed

+195
-203
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
on:
22
pull_request:
33
branches: main
4-
54
name: Render and Publish
6-
75
jobs:
86
build-deploy:
97
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
1010
steps:
11-
- name: Check out repository
11+
- name: Checkout repository
1212
uses: actions/checkout@v4
13-
13+
- name: Install system dependencies
14+
run: |
15+
sudo apt-get install libudunits2-dev \
16+
libgdal-dev \
17+
libgeos-dev \
18+
libproj-dev
19+
- uses: r-lib/actions/setup-r@v2
20+
- name: Install R Dependencies
21+
uses: r-lib/actions/setup-renv@v2
22+
with:
23+
cache-version: 1
1424
- name: Install python
1525
uses: actions/setup-python@v5
1626
with:
1727
python-version: '3.10'
1828
cache: 'pip' # caching pip dependencies
1929

20-
- name: Install python Dependencies
30+
- name: Install python dependencies
2131
run: |
2232
pip install pybind11
2333
pip install wheel setuptools pip --upgrade
2434
pip install -r requirements.txt
25-
2635
- name: Download NLP requirements
2736
run: ./download_nlp_reqs.sh
28-
2937
- name: Set up Quarto
3038
uses: quarto-dev/quarto-actions/setup@v2
3139
with:
@@ -35,41 +43,24 @@ jobs:
3543
# version: 0.9.600
3644

3745
# add software dependencies here
38-
3946
# To publish to Netlify, RStudio Connect, or GitHub Pages, uncomment
4047
# the appropriate block below
4148

42-
- name: Render
43-
uses: quarto-dev/quarto-actions/render@v2
44-
45-
- name: Install npm
46-
uses: actions/setup-node@v2
47-
with:
48-
node-version: '14'
49-
50-
# - name: Deploy to Netlify
51-
# # NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID added in the repo's secrets
52-
# env:
49+
# - name: Publish to Netlify (and render)
50+
# uses: quarto-dev/quarto-actions/publish@v2
51+
# with:
52+
# target: netlify
5353
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
54-
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
55-
# BRANCHE_REF: ${{ github.event.pull_request.head.ref }}
56-
# run: |
57-
# npm init -y
58-
# npm install --unsafe-perm=true netlify-cli -g
59-
# netlify init
60-
# netlify deploy --alias=${BRANCHE_REF} --dir="_site" --message "Preview deploy"
6154

6255
# - name: Publish to RStudio Connect (and render)
6356
# uses: quarto-dev/quarto-actions/publish@v2
6457
# with:
6558
# target: connect
6659
# CONNECT_SERVER: enter-the-server-url-here
6760
# CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
68-
6961
- name: Publish to GitHub Pages (and render)
7062
uses: quarto-dev/quarto-actions/publish@v2
7163
with:
7264
target: gh-pages
7365
env:
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
75-
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions

applications/ape.qmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ filters:
77
format:
88
html:
99
df-print: paged
10-
echo: true
1110
---
1211

1312
Cette application illustrera certains apports des outils du

0 commit comments

Comments
 (0)