diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index 03aabfe9a..000000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,46 +0,0 @@ - -name: coverage - -on: [ push, pull_request, workflow_dispatch ] - -jobs: - run: - runs-on: ${{ matrix.os }} - strategy: - matrix: -# os: [ubuntu-latest, macos-latest, windows-latest] - os: [ubuntu-latest] - python-version: [3.6] - env: - OS: ${{ matrix.os }} - PYTHON: ${{ matrix.python-version }} - steps: - - uses: actions/checkout@master - - name: Setup Python - uses: actions/setup-python@master - with: - python-version: ${{ matrix.python-version }} - - name: Install build dependencies - run: | - pip install -r maro/requirements.build.txt - - name: Compile cython files - run: | - cython ./maro/backends/backend.pyx ./maro/backends/np_backend.pyx ./maro/backends/raw_backend.pyx ./maro/backends/frame.pyx -3 -E FRAME_BACKEND=NUMPY,NODES_MEMORY_LAYOUT=ONE_BLOCK -X embedsignature=True - - name: Generate coverage report - run: | - pip install pytest - pip install pytest-cov - pip install -r ./tests/requirements.test.txt - PYTHONPATH=/home/runner/work/maro/maro pytest --cov=./ --cov-report=xml - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - file: ./coverage.xml - files: ./coverage1.xml,./coverage2.xml - directory: ./coverage/reports/ - flags: unittests - env_vars: OS,PYTHON - name: maro-code-coverage - fail_ci_if_error: true - path_to_write_report: ./coverage/codecov_report.gz diff --git a/README.md b/README.md index c02db6fb5..1d78d9539 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ [![Commits](https://img.shields.io/github/commits-since/microsoft/maro/latest/master)](https://github.com/microsoft/maro/commits/master) [![Quality](https://github.com/microsoft/maro/workflows/quality/badge.svg?branch=master)](https://github.com/microsoft/maro/actions?query=workflow%3Aquality) [![Lint](https://github.com/microsoft/maro/workflows/lint/badge.svg)](https://github.com/microsoft/maro/actions?query=workflow%3Alint) +[![Coverage](https://img.shields.io/codecov/c/github/microsoft/maro)](https://codecov.io/gh/microsoft/maro) [![Downloads](https://img.shields.io/pypi/dm/pymaro)](https://pypi.org/project/pymaro/#files) [![Docker Pulls](https://img.shields.io/docker/pulls/arthursjiang/maro)](https://hub.docker.com/repository/docker/arthursjiang/maro) diff --git a/tests/requirements.txt b/tests/requirements.txt deleted file mode 100644 index 7ad9ad7a1..000000000 --- a/tests/requirements.txt +++ /dev/null @@ -1,19 +0,0 @@ -matplotlib==3.1.2 -geopy -pandas -numpy==1.19.1 -pycurl -holidays -pyaml -redis -pyzmq -influxdb -requests -psutil -pychalk -deepdiff -azure-storage-blob -azure-storage-common -torch -pytest -coverage