-
Notifications
You must be signed in to change notification settings - Fork 22
63 lines (52 loc) · 1.97 KB
/
ci.yml
File metadata and controls
63 lines (52 loc) · 1.97 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
name: Continuous Integration
on:
pull_request:
paths-ignore:
- .gitignore
- README.md
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI (${{ matrix.platform }} / ${{ matrix.environment }})
runs-on: ${{ matrix.runner }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, macos-latest]
environment: ["r44", "r45"]
include:
- runner: ubuntu-latest
platform: linux-64
- runner: macos-latest
platform: osx-arm64
steps:
- name: Checkout pull request branch
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Create TOML from recipe
run: |
.github/workflows/create_toml_from_yaml.sh ${GITHUB_WORKSPACE}
mkdir -p /tmp/pixi
mv ${GITHUB_WORKSPACE}/pixi.toml /tmp/pixi
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.9.5
with:
manifest-path: /tmp/pixi/pixi.toml
- name: Run unit tests
run: |
pixi config set --manifest-path /tmp/pixi/pixi.toml --local run-post-link-scripts insecure
pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml devtools_test
- name: Check unit test code coverage
if: matrix.platform == 'linux-64' && matrix.environment == 'r44'
run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml codecov
#- name: Run R CMD CHECK
#run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml rcmdcheck
#- name: Run BiocCheckGitClone
#run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml bioccheck_git_clone
#- name: Run BiocCheck
#run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml bioccheck