From 524c397740c80acf4aaa3be5d5ec0f0d43197fca Mon Sep 17 00:00:00 2001 From: Rohan Bhaumik Date: Tue, 22 Aug 2023 09:59:52 -0400 Subject: [PATCH 1/8] Update main.yml to add Codecov support --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1a6ae47..4954027a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,3 +37,7 @@ jobs: run: python -m pip install -r requirements/dev.txt - name: Run tests run: python -m tox -e py # Run tox using the version of Python in `PATH` + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 5dcddf6520c8101aecc58fc005756943bcb38e08 Mon Sep 17 00:00:00 2001 From: Rohan Bhaumik Date: Tue, 22 Aug 2023 10:19:08 -0400 Subject: [PATCH 2/8] a small comment edit to trigger a PR --- cloudevents/sdk/converters/binary.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cloudevents/sdk/converters/binary.py b/cloudevents/sdk/converters/binary.py index c5fcbf54..f6b6c014 100644 --- a/cloudevents/sdk/converters/binary.py +++ b/cloudevents/sdk/converters/binary.py @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. +# This is a test, pl ignore import typing From 1ead7cc1f1a6f2ed7560a83437198db4657ab0f2 Mon Sep 17 00:00:00 2001 From: Rohan Bhaumik Date: Tue, 22 Aug 2023 10:47:11 -0400 Subject: [PATCH 3/8] updates to ci to run pytest --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4954027a..6c0a2ef2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: run: python -m pip install -r requirements/dev.txt - name: Run tests run: python -m tox -e py # Run tox using the version of Python in `PATH` - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Run tests and collect coverage + run: pytest --cov + - name: Upload coverage reports to Codecov with GitHub Action + uses: codecov/codecov-action@v3 \ No newline at end of file From da90acafd04ef27eedb2864634e612ac9a3b2268 Mon Sep 17 00:00:00 2001 From: Rohan Bhaumik Date: Tue, 22 Aug 2023 13:24:29 -0400 Subject: [PATCH 4/8] Update main.yml - undo damage --- .github/workflows/main.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6c0a2ef2..f1a6ae47 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,3 @@ jobs: run: python -m pip install -r requirements/dev.txt - name: Run tests run: python -m tox -e py # Run tox using the version of Python in `PATH` - - name: Run tests and collect coverage - run: pytest --cov - - name: Upload coverage reports to Codecov with GitHub Action - uses: codecov/codecov-action@v3 \ No newline at end of file From 95f2472f2b96098401f8f997b389870905c1c7bf Mon Sep 17 00:00:00 2001 From: Rohan Bhaumik Date: Wed, 23 Aug 2023 14:35:37 -0400 Subject: [PATCH 5/8] Update main.yml From 00dad10e27cfa93ad0a1ad4c7afe5168cef88033 Mon Sep 17 00:00:00 2001 From: Rohan Bhaumik Date: Wed, 23 Aug 2023 15:51:23 -0400 Subject: [PATCH 6/8] Update main.yml --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f1a6ae47..ab7d9c65 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,3 +37,5 @@ jobs: run: python -m pip install -r requirements/dev.txt - name: Run tests run: python -m tox -e py # Run tox using the version of Python in `PATH` + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 From 69a0ecb4f9ebefb5d8d55423754a91b7e5c03526 Mon Sep 17 00:00:00 2001 From: Rohan Bhaumik Date: Wed, 23 Aug 2023 15:57:16 -0400 Subject: [PATCH 7/8] Update tox.ini to create an xml coverage report --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index a5cbdfa7..0be6bf14 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ deps = -r{toxinidir}/requirements/test.txt -r{toxinidir}/requirements/publish.txt setenv = - PYTESTARGS = -v -s --tb=long --cov=cloudevents --cov-report term-missing --cov-fail-under=95 + PYTESTARGS = -v -s --tb=long --cov=cloudevents --cov-report term-missing --cov-report=xml commands = pytest {env:PYTESTARGS} {posargs} [testenv:reformat] From 77eb754445f2e4a54dcbf1e594f48462135d1793 Mon Sep 17 00:00:00 2001 From: Rohan Bhaumik Date: Wed, 23 Aug 2023 16:07:57 -0400 Subject: [PATCH 8/8] step0 --- cloudevents/kafka/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudevents/kafka/exceptions.py b/cloudevents/kafka/exceptions.py index 6459f0a2..e3b45541 100644 --- a/cloudevents/kafka/exceptions.py +++ b/cloudevents/kafka/exceptions.py @@ -10,7 +10,7 @@ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations -# under the License. +# under the License. Test from cloudevents import exceptions as cloud_exceptions