-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb639df
commit 8c2a915
Showing
3 changed files
with
83 additions
and
79 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,72 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
python: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
python setup.py install | ||
- name: Setup Singularity | ||
uses: eWaterCycle/setup-singularity@v3 | ||
with: | ||
singularity-version: 3.5.3 | ||
- name: Pull Docker image | ||
run: docker pull ewatercycle/walrus-grpc4bmi:v0.2.0 | ||
- name: Cache Singularity image | ||
id: cache-singularity-image | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.singularity | ||
key: singularity-image | ||
- name: Pull Singularity image | ||
if: steps.cache-singularity-image.outputs.cache-hit != 'true' | ||
run: singularity pull docker://ewatercycle/walrus-grpc4bmi:v0.2.0 | ||
- name: Test with pytest | ||
run: pytest --cov=grpc4bmi --cov-report xml | ||
- name: Correct coverage paths | ||
run: sed -i "s+$PWD/++g" coverage.xml | ||
- name: SonarCloud analysis | ||
uses: sonarsource/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
cpp: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Install grpc | ||
uses: ewatercycle/setup-grpc@master | ||
with: | ||
grpc-version: 1.27.2 | ||
- name: Copy grpc to system default | ||
run: | | ||
sudo rsync -a $GRPC_ROOT/ /usr/local | ||
sudo ldconfig | ||
- name: Build dir | ||
run: mkdir -p cpp/build | ||
- name: configure | ||
run: cmake .. | ||
working-directory: cpp/build | ||
- name: make | ||
run: make VERBOSE=1 | ||
working-directory: cpp/build | ||
- name: ctest | ||
run: ctest -V | ||
working-directory: cpp/build |
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