-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (41 loc) · 1.2 KB
/
Copy pathci.yml
File metadata and controls
45 lines (41 loc) · 1.2 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
name: Test
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: R unit tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Pixi
uses: prefix-dev/setup-pixi@v0.9.6
with:
pixi-version: v0.69.0
cache: true
environments: dev
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
- name: Check linters and formatting
run: pixi run pre-commit-all
- name: Run unit tests
run: pixi run test
- name: Run example notebook
run: |
pixi run serve-jupyter nbconvert \
--to notebook \
--execute \
--ExecutePreprocessor.store_widget_state=False \
--output "${PWD}/out.ipynb" \
examples/widgets.ipynb
# Widgets did render successufully as mime bundle
grep 'application/vnd.jupyter.ywidget-view+json' "${PWD}/out.ipynb"