Skip to content

Commit

Permalink
Merge pull request #4 from bendudson/github-actions
Browse files Browse the repository at this point in the history
Move to Github Actions
  • Loading branch information
bendudson authored Feb 1, 2021
2 parents 5990ade + 89379ad commit 743b858
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 69 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Tests
on: [push, pull_request]

defaults:
run:
shell: bash

jobs:
standard_tests:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
env:
OMP_NUM_THREADS: ${{ matrix.config.omp_num_threads }}
PYTHONPATH: ${{ github.workspace }}/tools/pylib
OMPI_MCA_rmaps_base_oversubscribe: yes
MPIRUN: mpiexec -np
strategy:
fail-fast: false
matrix:
config:
- name: "Default options"
os: ubuntu-18.04
configure_options: "--enable-debug"

steps:
- name: Job information
run: |
echo Build: ${{ matrix.config.name }}, ${{ matrix.config.os }}
echo Configure options: ${{ matrix.config.configure_options }}
- name: Install dependencies
run: sudo apt update &&
sudo apt install -y
libfftw3-dev
libnetcdf-dev
libnetcdf-c++4-dev
netcdf-bin
python3
python3-pip
python3-pytest
python3-numpy
python3-scipy
openmpi-bin
libopenmpi-dev
liblapack-dev
libparpack2-dev

- uses: actions/checkout@v2
with:
submodules: true

- name: Install pip packages
run: |
./.pip_install_for_travis.sh 'netcdf4~=1.5'
# Add the pip install location to the runner's PATH
echo ~/.local/bin >> $GITHUB_PATH
- name: Build and run tests
run: ./.travis_script.sh
env:
LD_LIBRARY_PATH: /home/runner/local/lib:$LD_LIBRARY_PATH
BOUT_CONFIGURE_OPTIONS: ${{ matrix.config.configure_options }}
68 changes: 0 additions & 68 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Hermes-3
========

[![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://img.shields.io/badge/license-GPL-blue.svg)
[![Build Status](https://travis-ci.org/bendudson/hermes-3.svg?branch=master)](https://travis-ci.org/bendudson/hermes-3)
![Build status](https://github.com/bendudson/hermes-3/workflows/Tests/badge.svg)

Hermes plasma edge simulation model. Uses BOUT++ framework, adds finite volume
operators and neutral gas models.
Expand Down

0 comments on commit 743b858

Please sign in to comment.