From ea4d3fd1fb58e86c26caaa3f7ab1bdec24455dc6 Mon Sep 17 00:00:00 2001 From: Varad Date: Wed, 16 Feb 2022 23:20:46 -0800 Subject: [PATCH] Correcting codecov check - Correcting sending of codecoverage information to CodeCov - Codecov coverage commentator correction - Readme.md and CODEOWNERS changes - CodeCoverage check only for 3.9 --- .github/workflows/gh-tests-ci.yml | 10 +++++--- CODEOWNERS | 2 +- README.md | 38 +++++++++++++++---------------- 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/.github/workflows/gh-tests-ci.yml b/.github/workflows/gh-tests-ci.yml index 6b87ecb0..4da6deec 100644 --- a/.github/workflows/gh-tests-ci.yml +++ b/.github/workflows/gh-tests-ci.yml @@ -25,9 +25,13 @@ jobs: python -m pip install -U -e .[dev] - name: Test with pytest run: | - pytest --cov=./azure --cov-report=xml --cov-branch tests + pytest --cache-clear --cov=./azure --cov-report=xml --cov-branch tests + - name: Test with pytest for CodeCoverage reporting + if: ${{ matrix.python-version }} == 3.9 + run: | + pytest --cache-clear --cov=./azure --cov-branch tests > pytest-coverage.txt - name: Codecov - if: matrix.python-version == 3.9 + if: ${{ matrix.python-version }} == 3.9 uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos @@ -38,4 +42,4 @@ jobs: - name: pytest-coverage-commentator uses: coroo/pytest-coverage-commentator@v1.0.2 with: - pytest-coverage: coverage.xml + pytest-coverage: pytest-coverage.txt diff --git a/CODEOWNERS b/CODEOWNERS index a18a8ba1..5866db82 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -9,4 +9,4 @@ # AZURE FUNCTIONS TEAM # For all file changes, github would automatically include the following people in the PRs. # -* @anirudhgarg @vrdmr @gavin-aguiar +* @vrdmr @gavin-aguiar @YunchuWang diff --git a/README.md b/README.md index fc0bcd08..f34661a4 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# Functions Header Image - Lightning Logo Azure Functions Python Library +# Functions Header Image - Lightning Logo Azure Functions Python Library -|Branch|Status|Coverage|CodeCov| -|---|---|---|---| -|master|[![Build Status](https://azfunc.visualstudio.com/Azure%20Functions%20Python/_apis/build/status/Azure%20Functions%20Python-CI?branchName=master)](https://azfunc.visualstudio.com/Azure%20Functions%20Python/_build/latest?definitionId=19&branchName=master)|![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/azfunc/Azure%20Functions%20Python/19/master)|[![codecov](https://codecov.io/gh/Azure/azure-functions-python-library/branch/master/graph/badge.svg)](https://codecov.io/gh/Azure/azure-functions-python-library) -|dev|[![Build Status](https://azfunc.visualstudio.com/Azure%20Functions%20Python/_apis/build/status/Azure%20Functions%20Python-CI?branchName=dev)](https://azfunc.visualstudio.com/Azure%20Functions%20Python/_build/latest?definitionId=19&branchName=dev)|![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/azfunc/Azure%20Functions%20Python/19/dev)|[![codecov](https://codecov.io/gh/Azure/azure-functions-python-library/branch/dev/graph/badge.svg)](https://codecov.io/gh/Azure/azure-functions-python-library) +| Branch | CodeCov | +|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| master | [![codecov](https://codecov.io/gh/Azure/azure-functions-python-library/branch/master/graph/badge.svg)](https://codecov.io/gh/Azure/azure-functions-python-library) | +| dev | [![codecov](https://codecov.io/gh/Azure/azure-functions-python-library/branch/dev/graph/badge.svg)](https://codecov.io/gh/Azure/azure-functions-python-library) | ## Overview @@ -14,11 +14,11 @@ Here is the current status of Python in Azure Functions: _What are the supported Python versions?_ -|Azure Functions Runtime|Python 3.6|Python 3.7|Python 3.8|Python 3.9| -|---|---|---|---|---| -|Azure Functions 2.0|✔|✔|-|-| -|Azure Functions 3.0|✔|✔|✔|✔| -|Azure Functions 4.0|-|✔|✔|✔| +| Azure Functions Runtime | Python 3.6 | Python 3.7 | Python 3.8 | Python 3.9 | +|-------------------------|------------|------------|------------|------------| +| Azure Functions 2.0 | ✔ | ✔ | - | - | +| Azure Functions 3.0 | ✔ | ✔ | ✔ | ✔ | +| Azure Functions 4.0 | - | ✔ | ✔ | ✔ | _What's available?_ - Build, test, debug and publish using Azure Functions Core Tools (CLI) or Visual Studio Code @@ -38,15 +38,15 @@ _What's available?_ Issues and feature requests are tracked in a variety of places. To report this feedback, please file an issue to the relevant repository below: -|Item|Description|Link| -|----|-----|-----| -| Python Worker | Programming Model, Triggers & Bindings |[File an Issue](https://github.com/Azure/azure-functions-python-worker/issues)| -| Linux | Base Docker Images |[File an Issue](https://github.com/Azure/azure-functions-docker/issues)| -| Runtime | Script Host & Language Extensibility |[File an Issue](https://github.com/Azure/azure-functions-host/issues)| -| VSCode | VSCode Extension for Azure Functions |[File an Issue](https://github.com/microsoft/vscode-azurefunctions/issues) -| Core Tools | Command Line Interface for Local Development |[File an Issue](https://github.com/Azure/azure-functions-core-tools/issues)| -| Portal | User Interface or Experience Issue |[File an Issue](https://github.com/azure/azure-functions-ux/issues)| -| Templates | Code Issues with Creation Template |[File an Issue](https://github.com/Azure/azure-functions-templates/issues)| +| Item | Description | Link | +|---------------|----------------------------------------------|--------------------------------------------------------------------------------| +| Python Worker | Programming Model, Triggers & Bindings | [File an Issue](https://github.com/Azure/azure-functions-python-worker/issues) | +| Linux | Base Docker Images | [File an Issue](https://github.com/Azure/azure-functions-docker/issues) | +| Runtime | Script Host & Language Extensibility | [File an Issue](https://github.com/Azure/azure-functions-host/issues) | +| VSCode | VSCode Extension for Azure Functions | [File an Issue](https://github.com/microsoft/vscode-azurefunctions/issues) | +| Core Tools | Command Line Interface for Local Development | [File an Issue](https://github.com/Azure/azure-functions-core-tools/issues) | +| Portal | User Interface or Experience Issue | [File an Issue](https://github.com/azure/azure-functions-ux/issues) | +| Templates | Code Issues with Creation Template | [File an Issue](https://github.com/Azure/azure-functions-templates/issues) | ## Contributing