This repository was archived by the owner on Nov 20, 2025. It is now read-only.
Repository navigation
79 lines (65 loc) · 2.15 KB
/
Copy pathci.yml
File metadata and controls
79 lines (65 loc) · 2.15 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Continuous Integration
on:
pull_request:
paths-ignore:
- .github/*
- .gitignore
- README.md
jobs:
ci_linux-64:
name: linux-64 CI
runs-on: ubuntu-latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
strategy:
fail-fast: false
matrix:
environment: ["r43", "r44"]
steps:
- name: Checkout pull request branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Copy TOML
run: |
mkdir /tmp/pixi
cp ${GITHUB_WORKSPACE}/pixi.toml /tmp/pixi
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
run-install: false
- name: Run unit tests
run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml devtools_test
- name: Run R CMD CHECK
run: |
pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml build
pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml rcmdcheck
- name: Check unit test code coverage
if: ${{ matrix.environment == 'r44' }}
run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml codecov
ci_osx-arm64:
name: osx-arm64 CI
runs-on: macos-14
strategy:
fail-fast: false
matrix:
environment: ["r43", "r44"]
steps:
- name: Checkout pull request branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Copy TOML
run: |
mkdir /tmp/pixi
cp ${GITHUB_WORKSPACE}/pixi.toml /tmp/pixi
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.1
with:
run-install: false
- name: Run unit tests
run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml devtools_test
- name: Run R CMD CHECK
run: |
pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml build
pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml rcmdcheck