Skip to content

Commit 9a5ca3f

Browse files
authored
Merge pull request #196 from Project-MONAI/elacey/switch-ci2github-add-codecov
Remove Azure pipeline, add Github Pipeline + Codecov
2 parents e26ac75 + 3badbc9 commit 9a5ca3f

File tree

3 files changed

+74
-49
lines changed

3 files changed

+74
-49
lines changed

.azure/azure-build-pipeline.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/codecov.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: 70%
6+
threshold: 10
7+
base: parent
8+
if_no_uploads: error
9+
if_not_found: success
10+
if_ci_failed: error
11+
only_pulls: false
12+
flags: null
13+
paths: null
14+
patch:
15+
default:
16+
target: auto
17+
# Allows PRs without tests, overall stats count
18+
threshold: 100
19+
base: auto
20+
if_no_uploads: error
21+
if_not_found: success
22+
if_ci_failed: error
23+
only_pulls: false
24+
flags: null
25+
paths: null
26+
27+
# Disable comments on PR
28+
comment: false
29+
30+
ignore:
31+
- "/monai/deploy/_version.py"

.github/workflows/pr.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: build
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python 3.6
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.6
21+
- name: Setup Dev Environment
22+
run: |
23+
pip install virtualenv
24+
virtualenv .venv
25+
source .venv/bin/activate
26+
./run setup
27+
- name: Check formatting
28+
run: |
29+
source .venv/bin/activate
30+
./run check -f
31+
- name: Run Unit tests
32+
run: |
33+
source .venv/bin/activate
34+
./run test all unit
35+
- name: Coverage
36+
run: |
37+
source .venv/bin/activate
38+
coverage xml
39+
- name: Upload coverage
40+
uses: codecov/codecov-action@v2
41+
with:
42+
fail_ci_if_error: false
43+
files: ./coverage.xml

0 commit comments

Comments
 (0)