Skip to content

Updating single-header #407

Updating single-header

Updating single-header #407

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: Tests and coverage
on: [push, pull_request]
env:
cntr: gvegayon/epiworld:latest
jobs:
test-ubuntu:
runs-on: Ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Container
run: docker pull ${cntr}
- name: Check
run: |
docker run --rm -i -e "OPENMP=-fopenmp" -v ${PWD}:/home/tests \
-w /home/tests ${cntr} make all-examples
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Check
run: |
brew install llvm@14
echo 'export PATH="/usr/local/opt/llvm@14/bin:$PATH"' >> /Users/runner/.bash_profile
cd tests && make main.a && ./main.a
test-ubuntu2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - name: Install valgrind
# run: sudo apt-get install --no-install-recommends valgrind
- name: Check
run: |
cd tests && OPENMP=-fopenmp make main.o && ./main.o
# cd tests && make 01c.o && valgrind --leak-check=full ./01c.o