-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (37 loc) · 1.32 KB
/
test-rix-sys-tex.yaml
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
# Integration tests for installing tex and system packages
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: test-rix-sys-tex
permissions:
contents: read
jobs:
devtools:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v15
with:
name: rstats-on-nix
# If you chose signing key for write access
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH }}'
- name: Build default.nix with system and tex packages
run: |
nix-shell default.nix --run "Rscript -e \"devtools::load_all();rix('4.4.2', r_pkgs = c('dplyr', 'S4Vectors'), system_pkgs = c('quarto', 'git'), tex_pkgs = c('amsmath', 'orcidlink'), project_path = '.', overwrite = TRUE)\""
- name: Check generated default.nix
run: cat default.nix
- name: Build default.nix
run: nix-build
- name: Try running the shell
run: nix-shell --run "echo OK"