Skip to content

CI

CI #1

Workflow file for this run

name: CI
on:
pull_request:
branches: [master]
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
# 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 -w /usr/bayesmix/python test /bin/bash -c "python3 -m pip install -e . && pytest"
# - name: run R tests
# run: docker run test Rscript --vanilla -e "testthat::test_package('bayesmixr')"