Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
d6069248
Commit
d6069248
authored
May 15, 2021
by
Zhenbo Li
Committed by
GitHub
May 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test job for code coverage analysis (GH-4157)
parent
c1dc048b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
.github/workflows/ci.yml
.github/workflows/ci.yml
+33
-0
Tools/ci-run.sh
Tools/ci-run.sh
+1
-1
No files found.
.github/workflows/ci.yml
View file @
d6069248
...
...
@@ -147,3 +147,36 @@ jobs:
continue-on-error
:
${{ matrix.allowed_failure ||
false
}}
env
:
${{ matrix.env }}
run
:
bash ./Tools/ci-run.sh
code_quality
:
strategy
:
# Allows for matrix sub-jobs to fail without canceling the rest
fail-fast
:
false
runs-on
:
ubuntu-18.04
env
:
BACKEND
:
c,cpp
OS_NAME
:
ubuntu-18.04
PYTHON_VERSION
:
3.9
steps
:
-
name
:
Checkout repo
uses
:
actions/checkout@v2
with
:
fetch-depth
:
1
-
name
:
Setup python
uses
:
actions/setup-python@v2
with
:
python-version
:
3.9
-
name
:
Run Coverage
env
:
{
COVERAGE
:
1
}
run
:
bash ./Tools/ci-run.sh
-
name
:
Upload Coverage Report
uses
:
actions/upload-artifact@v2
with
:
path
:
coverage-report-html
Tools/ci-run.sh
View file @
d6069248
...
...
@@ -102,7 +102,7 @@ python runtests.py \
--backends
=
$BACKEND
\
$LIMITED_API
\
$EXCLUDE
\
$(
if
[
"
$COVERAGE
"
==
"1"
]
;
then
echo
" --coverage"
;
fi
)
\
$(
if
[
"
$COVERAGE
"
==
"1"
]
;
then
echo
" --coverage
--coverage-html --cython-only
"
;
fi
)
\
$(
if
[
-z
"
$TEST_CODE_STYLE
"
]
;
then
echo
" -j7 "
;
fi
)
EXIT_CODE
=
$?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment