-
Notifications
You must be signed in to change notification settings - Fork 18
34 lines (26 loc) · 1015 Bytes
/
test.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
name: CI
on:
pull_request:
branches: [master]
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
build:
if: github.repository == 'bayesmix-dev/bayesmix' && github.event.pull_request.draft == false
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out the repo
uses: actions/checkout@v3
- name: build
run: docker
- name: Build test Docker image
run: docker build -f resources/docker/test/Dockerfile -t test .
- name: Run C++ tests
run: docker run test ./build/test/test_bayesmix
- name: Run Python tests
run: docker run test /bin/bash -c "cd python && pytest"
- name: Run R tests
run: docker run test Rscript --vanilla -e "testthat::test_package('bayesmixr')"