Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ refactoring: Enable codecov. #1120

Merged
merged 5 commits into from Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
119 changes: 62 additions & 57 deletions .ci/azure-buildtest-awkward.yml
Expand Up @@ -43,42 +43,42 @@ jobs:

strategy:
matrix:
"py27-32bit":
python.version: "2.7"
python.architecture: "x86"
numpy.version: "1.16.5"
"py27-64bit":
python.version: "2.7"
"py39-64bit":
python.version: "3.9"
python.architecture: "x64"
numpy.version: "1.16.5"
"py35-64bit":
python.version: "3.5"
numpy.version: "latest"
"py39-32bit":
python.version: "3.9"
python.architecture: "x86"
numpy.version: "latest"
"py38-64bit":
python.version: "3.8"
python.architecture: "x64"
numpy.version: "latest"
"py36-64bit":
python.version: "3.6"
"py37-64bit":
python.version: "3.7"
python.architecture: "x64"
numpy.version: "latest"
"py37-32bit":
python.version: "3.7"
python.architecture: "x86"
numpy.version: "latest"
"py37-64bit":
python.version: "3.7"
"py36-64bit":
python.version: "3.6"
python.architecture: "x64"
numpy.version: "latest"
"py38-64bit":
python.version: "3.8"
"py35-64bit":
python.version: "3.5"
python.architecture: "x64"
numpy.version: "latest"
"py39-32bit":
python.version: "3.9"
python.architecture: "x86"
numpy.version: "latest"
"py39-64bit":
python.version: "3.9"
"py27-64bit":
python.version: "2.7"
python.architecture: "x64"
numpy.version: "latest"
numpy.version: "1.16.5"
"py27-32bit":
python.version: "2.7"
python.architecture: "x86"
numpy.version: "1.16.5"

steps:
- checkout: self
Expand Down Expand Up @@ -136,30 +136,30 @@ jobs:

strategy:
matrix:
"py27":
python.version: "2.7"
python.architecture: "x64"
numpy.version: "1.16.5"
"py35":
python.version: "3.5"
"py39":
python.version: "3.9"
python.architecture: "x64"
numpy.version: "latest"
"py36":
python.version: "3.6"
"py38":
python.version: "3.8"
python.architecture: "x64"
numpy.version: "latest"
"py37":
python.version: "3.7"
python.architecture: "x64"
numpy.version: "latest"
"py38":
python.version: "3.8"
"py36":
python.version: "3.6"
python.architecture: "x64"
numpy.version: "latest"
"py39":
python.version: "3.9"
"py35":
python.version: "3.5"
python.architecture: "x64"
numpy.version: "latest"
"py27":
python.version: "2.7"
python.architecture: "x64"
numpy.version: "1.16.5"

steps:
- checkout: self
Expand Down Expand Up @@ -217,34 +217,34 @@ jobs:

strategy:
matrix:
"py27-np13":
python.version: "2.7"
python.architecture: "x64"
numpy.version: "1.13.1"
"py27-np16":
python.version: "2.7"
python.architecture: "x64"
numpy.version: "1.16.5"
"py35-np13":
python.version: "3.5"
"py39-np*":
python.version: "3.9"
python.architecture: "x64"
numpy.version: "1.13.1"
"py36-np*":
python.version: "3.6"
numpy.version: "latest"
"py38-np*":
python.version: "3.8"
python.architecture: "x64"
numpy.version: "latest"
"py37-np*":
python.version: "3.7"
python.architecture: "x64"
numpy.version: "latest"
"py38-np*":
python.version: "3.8"
"py36-np*":
python.version: "3.6"
python.architecture: "x64"
numpy.version: "latest"
"py39-np*":
python.version: "3.9"
"py35-np13":
python.version: "3.5"
python.architecture: "x64"
numpy.version: "latest"
numpy.version: "1.13.1"
"py27-np16":
python.version: "2.7"
python.architecture: "x64"
numpy.version: "1.16.5"
"py27-np13":
python.version: "2.7"
python.architecture: "x64"
numpy.version: "1.13.1"

steps:
- checkout: self
Expand All @@ -268,14 +268,14 @@ jobs:
fi
displayName: "Install NumPy"

- script: |
python -m pip list
displayName: "Print versions"

- script: |
python -m pip install -v .[test,dev]
displayName: "Build"

- script: |
python -m pip list
displayName: "Print versions"

- script: |
python dev/kernel-diagnostics.py --check-spec-sorted
displayName: "Check if kernel specification is sorted"
Expand All @@ -297,5 +297,10 @@ jobs:
displayName: "Test CPU kernels"

- script: |
python -m pytest -vv -rs tests
python -m pytest -vv -rs tests --cov=awkward._v2 --cov-report=term --cov-report=xml
displayName: "Test"

- script: |
bash <(curl -s https://codecov.io/bash)
displayName: "Codecov"
condition: "eq(variables['python.version'], '3.9')"
2 changes: 2 additions & 0 deletions codecov.yml
@@ -0,0 +1,2 @@
codecov:
require_ci_to_pass: true
1 change: 1 addition & 0 deletions requirements-test.txt
@@ -1 +1,2 @@
pytest>=3.9
pytest-cov
3 changes: 3 additions & 0 deletions tests/samples/__init__.py
@@ -0,0 +1,3 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE

from __future__ import absolute_import
3 changes: 3 additions & 0 deletions tests/v2/__init__.py
@@ -0,0 +1,3 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE

from __future__ import absolute_import