Skip to content

Commit ef60098

Browse files
authored
Merge pull request #8015 from quarto-dev/test-deps
2 parents 6f4e15c + eb0f765 commit ef60098

File tree

9 files changed

+1256
-1127
lines changed

9 files changed

+1256
-1127
lines changed

.github/workflows/test-smokes.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ on:
2828
schedule:
2929
- cron: "0 6 * * *"
3030

31+
permissions:
32+
actions: write
33+
contents: read
34+
3135
jobs:
3236
run-smokes:
3337
name: Run smoke (${{ matrix.os }})${{ matrix.time-test && ' with timed file' || ''}}
@@ -57,8 +61,10 @@ jobs:
5761
- name: Set up R
5862
uses: r-lib/actions/setup-r@v2
5963
with:
60-
r-version: "4.2.2"
64+
r-version: "4.3.2"
6165
use-public-rspm: true
66+
# required to avoid rtools bin in path
67+
windows-path-include-rtools: false
6268

6369
- name: Install node (for Playwright, MECA)
6470
uses: actions/setup-node@v3
@@ -124,7 +130,7 @@ jobs:
124130
- name: Set up Python
125131
uses: actions/setup-python@v4
126132
with:
127-
python-version: "3.11"
133+
python-version: "3.12"
128134
cache: "pipenv"
129135
cache-dependency-path: "./tests/Pipfile.lock"
130136

@@ -149,15 +155,12 @@ jobs:
149155
uses: browser-actions/setup-chrome@latest
150156

151157
- name: Setup Julia
152-
uses: julia-actions/setup-julia@v1.9.4
158+
uses: julia-actions/setup-julia@v1
153159
with:
154-
version: 1.9.3
160+
version: "1.10"
155161

156162
- name: Cache Julia Packages
157163
uses: julia-actions/cache@v1
158-
with:
159-
cache-name: version-1
160-
cache-registries: true
161164

162165
- name: Restore Julia Packages
163166
working-directory: tests

dev-docs/configuring-test-deps.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Installing and configuring the main tools
2+
3+
## Julia
4+
5+
- Install `juliaup`
6+
- Install version to use e.g `juliaup add 1.10`
7+
- Configure `tests` folder to use a specific version
8+
9+
```
10+
cd tests
11+
juliaup override unset
12+
juliaup override 1.10
13+
```
14+
15+
This way when calling `julia` in `tests` folder it will always be Julia 1.10 version
16+
17+
## Python
18+
19+
- Install `pyenv`
20+
- Install a specic version e.g `pyenv install 3.12.1`
21+
- Configure `tests` to use a specific version
22+
23+
```
24+
cd tests
25+
pyenv local 3.12.1
26+
```
27+
28+
This way when calling `python` in `tests` folder it will always be Python 3.12.1 version
29+
30+
## R
31+
32+
- Install `rig`
33+
- Install R version e.g `rig add 4.3.2`
34+
- For now, no way to just configure a folder to use a specific version, so you need to set the version globally
35+
36+
```
37+
rig default 4.3.2
38+
```
39+
40+
## NPM
41+
42+
- Install `npm` needed for meca
43+
44+
# Installing the dependencies in each languages packages
45+
46+
- From `tests` folder, run `configure-test-env` scripts to restore dependencies for each tools

tests/.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11.1
1+
3.12.1

0 commit comments

Comments
 (0)