Skip to content

Commit 3250bfb

Browse files
committed
with prod.yml
1 parent a732065 commit 3250bfb

File tree

2 files changed

+19
-33
lines changed

2 files changed

+19
-33
lines changed

.github/workflows/prod.yml

Lines changed: 18 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -24,52 +24,39 @@ jobs:
2424
2525
- uses: r-lib/actions/setup-r@v2
2626

27+
- name: Installing latest rv # cf https://github.com/marketplace/actions/a2-ai-setup-rv
28+
uses: a2-ai/setup-rv@v1.0.0
2729

2830
- name: Install R Dependencies
29-
uses: r-lib/actions/setup-renv@v2
30-
with:
31-
cache-version: 1
31+
run: |
32+
rv sync
3233
3334
- name: Install python
3435
uses: actions/setup-python@v5
3536
with:
3637
python-version: '3.13'
37-
cache: 'pip' # caching pip dependencies
38-
38+
39+
- name: Install uv
40+
uses: astral-sh/setup-uv@v6
41+
with:
42+
enable-cache: true
43+
44+
- name: Add venv to PATH
45+
run: echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
46+
3947
- name: Install python dependencies
4048
run: |
41-
pip install pybind11
42-
pip install wheel setuptools pip --upgrade
43-
pip install -r requirements.txt
49+
uv sync
4450
4551
- name: Download NLP requirements
46-
run: ./download_nlp_reqs.sh
52+
run: |
53+
uv run bash download_nlp_reqs.sh
4754
4855
- name: Set up Quarto
4956
uses: quarto-dev/quarto-actions/setup@v2
5057
with:
51-
# To install LaTeX to build PDF book
52-
tinytex: true
53-
# uncomment below and fill to pin a version
54-
# version: 0.9.600
55-
56-
# add software dependencies here
57-
58-
# To publish to Netlify, RStudio Connect, or GitHub Pages, uncomment
59-
# the appropriate block below
60-
61-
# - name: Publish to Netlify (and render)
62-
# uses: quarto-dev/quarto-actions/publish@v2
63-
# with:
64-
# target: netlify
65-
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
66-
67-
# - name: Publish to RStudio Connect (and render)
68-
# uses: quarto-dev/quarto-actions/publish@v2
69-
# with:
70-
# target: connect
71-
# CONNECT_SERVER: enter-the-server-url-here
72-
# CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
58+
# To install LaTeX to build PDF book
59+
tinytex: true
7360

7461
- name: Publish to GitHub Pages (and render)
7562
uses: quarto-dev/quarto-actions/publish@v2

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
2424
- uses: r-lib/actions/setup-r@v2
2525

26-
- name: Installing latest rv
26+
- name: Installing latest rv # cf https://github.com/marketplace/actions/a2-ai-setup-rv
2727
uses: a2-ai/setup-rv@v1.0.0
2828

2929
- name: Install R Dependencies
@@ -59,7 +59,6 @@ jobs:
5959
# uncomment below and fill to pin a version
6060
# version: 0.9.600
6161

62-
6362
- name: Publish to GitHub Pages (and render)
6463
uses: quarto-dev/quarto-actions/publish@v2
6564
with:

0 commit comments

Comments
 (0)