-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #341 from PRUNERS/issue312-replace-travisci-with-g…
…ithub-actions Replace travis-ci with github actions Fixes issue #341
- Loading branch information
Showing
4 changed files
with
54 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Automated Tests | ||
|
||
on: | ||
push: # all pushes, but only to the specified branches | ||
branches: [ devel, master, main ] | ||
pull_request: # all pull requests | ||
workflow_dispatch: # allows manual triggering on web interface | ||
|
||
jobs: | ||
automated-tests: | ||
runs-on: ubuntu-latest | ||
|
||
# matrix docs: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix | ||
strategy: | ||
matrix: | ||
include: | ||
- name: openmpi | ||
packages: libopenmpi-dev openmpi-bin | ||
- name: mpich | ||
packages: libmpich-dev mpich | ||
- name: none | ||
packages: | ||
|
||
steps: | ||
- name: install dependencies | ||
run: > | ||
sudo apt-get update && | ||
sudo apt-get install python3 python3-pip ${{ matrix.packages }} && | ||
pip3 install --user setuptools toml | ||
- uses: actions/checkout@v2 | ||
- name: build tests | ||
run: make -C tests -j ${{ steps.cpu-cores.outputs.count }} | ||
- name: run tests | ||
run: make check |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters