-
Notifications
You must be signed in to change notification settings - Fork 1.7k
38 lines (37 loc) · 1.06 KB
/
build-R.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: build-R
concurrency:
group: build-R-${{ github.ref }}
cancel-in-progress: true
on:
# pull_request:
# paths-ignore:
# - '**/*.md'
push:
paths-ignore:
- '**/*.md'
workflow_dispatch:
jobs:
build-R:
name: Run R tests
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
auto-update-conda: true
auto-activate-base: true
channels: conda-forge
- run: conda deactivate
- run: conda info --envs
- run: conda activate base
- run: conda info --envs
# - run: conda install -c conda-forge mamba
- run: conda env update --file environment.yml -n test # Update the depencies of the environment from environment.yml
- run: conda info --envs
- run: conda activate test
- run: conda list