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

Update Tests dependencies #8015

Merged
merged 1 commit into from
Feb 19, 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
17 changes: 10 additions & 7 deletions .github/workflows/test-smokes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ on:
schedule:
- cron: "0 6 * * *"

permissions:
actions: write
contents: read

jobs:
run-smokes:
name: Run smoke (${{ matrix.os }})${{ matrix.time-test && ' with timed file' || ''}}
Expand Down Expand Up @@ -57,8 +61,10 @@ jobs:
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.2.2"
r-version: "4.3.2"
use-public-rspm: true
# required to avoid rtools bin in path
windows-path-include-rtools: false

- name: Install node (for Playwright, MECA)
uses: actions/setup-node@v3
Expand Down Expand Up @@ -124,7 +130,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
cache: "pipenv"
cache-dependency-path: "./tests/Pipfile.lock"

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

- name: Setup Julia
uses: julia-actions/setup-julia@v1.9.4
uses: julia-actions/setup-julia@v1
with:
version: 1.9.3
version: "1.10"

- name: Cache Julia Packages
uses: julia-actions/cache@v1
with:
cache-name: version-1
cache-registries: true

- name: Restore Julia Packages
working-directory: tests
Expand Down
46 changes: 46 additions & 0 deletions dev-docs/configuring-test-deps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Installing and configuring the main tools

## Julia

- Install `juliaup`
- Install version to use e.g `juliaup add 1.10`
- Configure `tests` folder to use a specific version

```
cd tests
juliaup override unset
juliaup override 1.10
```

This way when calling `julia` in `tests` folder it will always be Julia 1.10 version

## Python

- Install `pyenv`
- Install a specic version e.g `pyenv install 3.12.1`
- Configure `tests` to use a specific version

```
cd tests
pyenv local 3.12.1
```

This way when calling `python` in `tests` folder it will always be Python 3.12.1 version

## R

- Install `rig`
- Install R version e.g `rig add 4.3.2`
- For now, no way to just configure a folder to use a specific version, so you need to set the version globally

```
rig default 4.3.2
```

## NPM

- Install `npm` needed for meca

# Installing the dependencies in each languages packages

- From `tests` folder, run `configure-test-env` scripts to restore dependencies for each tools
2 changes: 1 addition & 1 deletion tests/.python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11.1
3.12.1
Loading
Loading