From 7876daca42109a716083b916ccbdfe75a872c4f7 Mon Sep 17 00:00:00 2001 From: Milind Sharma Date: Tue, 24 Jan 2023 14:06:47 +0800 Subject: [PATCH 1/9] fix [setup.cfg]: Fix typo --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index fd05d03..a260755 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = ozon3 -version = t 4.0.1 +version = 4.0.1 author = Milind Sharma author_email = milindsharma8@gmail.com description = An open-source package to easily obtain real-time, historical, or forecasted air quality data for anywhere in the world. Reliable, accurate and simple. From d271f60f5cccfb00eb6f3217fcfa0f40e035eaaf Mon Sep 17 00:00:00 2001 From: Milind Sharma Date: Tue, 24 Jan 2023 14:31:12 +0800 Subject: [PATCH 2/9] Create codecov.yml --- .github/workflows/codecov.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..8a9bdfb --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,34 @@ +name: Codecov workflow +on: + # Triggers the workflow on release publish + release: + types: [published] +jobs: + run: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + env: + OS: ${{ matrix.os }} + PYTHON: '3.9' + steps: + - uses: actions/checkout@master + - name: Setup Python + uses: actions/setup-python@master + with: + python-version: 3.9 + - name: Generate coverage report + run: | + pip install pytest + pip install pytest-cov + pytest --cov=./ --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3.1.1 + with: + directory: ./coverage/reports/ + env_vars: OS,PYTHON + flags: unittests + name: codecov-umbrella + path_to_write_report: ./coverage/codecov_report.txt + verbose: true From 15aaaef6abbe9d04b5e4866cff925e0a04a980af Mon Sep 17 00:00:00 2001 From: Milind Sharma Date: Tue, 24 Jan 2023 14:38:17 +0800 Subject: [PATCH 3/9] Update codecov.yml --- .github/workflows/codecov.yml | 47 +++++++++++++---------------------- 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 8a9bdfb..ba3d568 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,34 +1,21 @@ -name: Codecov workflow -on: - # Triggers the workflow on release publish - release: + +name: Workflow for Codecov +on: + release: types: [published] jobs: run: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - env: - OS: ${{ matrix.os }} - PYTHON: '3.9' + runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Setup Python - uses: actions/setup-python@master - with: - python-version: 3.9 - - name: Generate coverage report - run: | - pip install pytest - pip install pytest-cov - pytest --cov=./ --cov-report=xml - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3.1.1 - with: - directory: ./coverage/reports/ - env_vars: OS,PYTHON - flags: unittests - name: codecov-umbrella - path_to_write_report: ./coverage/codecov_report.txt - verbose: true + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: '3.9' + - name: Install dependencies + run: pip install -r requirements.txt + - name: Run tests and collect coverage + run: pytest --cov app + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 From d2b3982f372b4f599131d65757dacb2901e08b7a Mon Sep 17 00:00:00 2001 From: Milind Sharma Date: Tue, 24 Jan 2023 14:46:04 +0800 Subject: [PATCH 4/9] Update codecov.yml --- .github/workflows/codecov.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index ba3d568..2f0ee02 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,8 +1,6 @@ name: Workflow for Codecov -on: - release: - types: [published] +on: [push, pull_request] jobs: run: runs-on: ubuntu-latest From 8ecbb6b03276f3230093c3f02556ae014f0fd875 Mon Sep 17 00:00:00 2001 From: Milind Sharma Date: Tue, 24 Jan 2023 14:52:58 +0800 Subject: [PATCH 5/9] Update codecov.yml --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 2f0ee02..229c583 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -14,6 +14,6 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt - name: Run tests and collect coverage - run: pytest --cov app + run: pytest --cov tests - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 From 3bb09403fe2443876dfd12384a86dcda89747f47 Mon Sep 17 00:00:00 2001 From: Milind Sharma Date: Tue, 24 Jan 2023 15:00:12 +0800 Subject: [PATCH 6/9] Update codecov.yml --- .github/workflows/codecov.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 229c583..669a24b 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -7,13 +7,19 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Set up Python 3.9 uses: actions/setup-python@v2 with: python-version: '3.9' + - name: Install dependencies - run: pip install -r requirements.txt + run: | + pip install -r requirements.txt + pip install -e . + - name: Run tests and collect coverage - run: pytest --cov tests + run: pytest --cov + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 From 5331d640bebc09bdeff1ab981cd94db0157101c1 Mon Sep 17 00:00:00 2001 From: Milind Sharma Date: Tue, 24 Jan 2023 15:03:43 +0800 Subject: [PATCH 7/9] chore [requirements.txt]: Add pytest--cov --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 9017a6a..8acfcbb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,5 +12,6 @@ black pre-commit pytest==7.1.1 +pytest-cov==4.0.0 pytest-recording==0.12.0 python-decouple==3.6 From c7768f41d8f397e0e60b23a095795a90d49fd07e Mon Sep 17 00:00:00 2001 From: Milind Sharma Date: Mon, 30 Jan 2023 11:23:36 +0800 Subject: [PATCH 8/9] docs [README]: Add CodeCov Badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3632306..f4d12cb 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ![SVG of ozon3 logo](/src/media/ozon3_logo.svg) -[![PyPI version](https://badge.fury.io/py/ozon3.svg)](https://badge.fury.io/py/ozon3) PRs Welcome ![GitHub](https://img.shields.io/github/license/Ozon3Org/Ozon3) [![Complete Documentation](https://github.com/Ozon3Org/Ozon3/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/Ozon3Org/Ozon3/actions/workflows/pages/pages-build-deployment) [![Dependency Review](https://github.com/Ozon3Org/Ozon3/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/Ozon3Org/Ozon3/actions/workflows/dependency-review.yml) [![Tests](https://github.com/Ozon3Org/Ozon3/actions/workflows/test.yml/badge.svg)](https://github.com/Ozon3Org/Ozon3/actions/workflows/test.yml) +[![PyPI version](https://badge.fury.io/py/ozon3.svg)](https://badge.fury.io/py/ozon3) PRs Welcome ![GitHub](https://img.shields.io/github/license/Ozon3Org/Ozon3) [![Complete Documentation](https://github.com/Ozon3Org/Ozon3/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/Ozon3Org/Ozon3/actions/workflows/pages/pages-build-deployment) [![Dependency Review](https://github.com/Ozon3Org/Ozon3/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/Ozon3Org/Ozon3/actions/workflows/dependency-review.yml) [![Tests](https://github.com/Ozon3Org/Ozon3/actions/workflows/test.yml/badge.svg)](https://github.com/Ozon3Org/Ozon3/actions/workflows/test.yml) [![codecov](https://codecov.io/github/Ozon3Org/Ozon3/branch/main/graph/badge.svg?token=N2HMGQYCHI)](https://codecov.io/github/Ozon3Org/Ozon3) [![Buy Me a Coffee](https://img.shields.io/badge/buy_me_a_coffee-orange.svg?style=flat)](https://www.buymeacoffee.com/MilindSharma) ## The simplest AQI API From 08d2ea061eb1a7549eae10b1eecde723b54beebd Mon Sep 17 00:00:00 2001 From: Milind Sharma Date: Tue, 31 Jan 2023 13:24:37 +0800 Subject: [PATCH 9/9] chore: Update release version to v4.0.2 --- setup.cfg | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index a260755..ad4b5c7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = ozon3 -version = 4.0.1 +version = 4.0.2 author = Milind Sharma author_email = milindsharma8@gmail.com description = An open-source package to easily obtain real-time, historical, or forecasted air quality data for anywhere in the world. Reliable, accurate and simple. diff --git a/setup.py b/setup.py index c40b84a..bee744a 100644 --- a/setup.py +++ b/setup.py @@ -11,8 +11,8 @@ "accurate and simple.", license="GPLv3+", url="https://github.com/Ozon3Org/Ozon3", - version="4.0.1", - download_url="https://github.com/Ozon3Org/Ozon3/archive/refs/tags/v4.0.1.tar.gz", + version="4.0.2", + download_url="https://github.com/Ozon3Org/Ozon3/archive/refs/tags/v4.0.2.tar.gz", packages=setuptools.find_packages(), install_requires=[ "numpy; python_version>='3'",