-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 1.44 KB
/
Copy pathtest-s3m-workflow.yaml
File metadata and controls
51 lines (42 loc) · 1.44 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
name: test S3M workflow
on:
# push:
# branches: [main, master]
# pull_request:
# branches: [main, master]
workflow_dispatch:
branches:
- '*'
jobs:
test-S3M-workflow:
runs-on: ubuntu-latest
container: rocker/geospatial:4.2.1
env:
GIT_CRYPT_KEY64: ${{ secrets.GIT_CRYPT_KEY64 }}
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
apt-get update && apt-get install -y --no-install-recommends \
git-crypt libxt6 libglpk-dev
- name: Trust repo
run: |
git config --global --add safe.directory /__w/pai_monitoring_evaluation/pai_monitoring_evaluation
- name: Decrypt repository using symmetric key
run: |
echo $GIT_CRYPT_KEY64 > git_crypt_key.key64 && base64 -di git_crypt_key.key64 > git_crypt_key.key && git-crypt unlock git_crypt_key.key
rm git_crypt_key.key git_crypt_key.key64
- name: Install packages from renv.lock (with cache)
if: ${{ !env.ACT }}
uses: r-lib/actions/setup-renv@master
with:
cache-version: 2
- name: Install packages from renv.lock (local, no cache)
if: ${{ env.ACT }}
run: |
renv::restore()
shell: Rscript {0}
- name: Run workflow
run: |
targets::tar_make(dplyr::contains("deployed"))
shell: Rscript {0}