From e15755d9349afb421ddac147706013916cb2fb36 Mon Sep 17 00:00:00 2001 From: Ivanildo Barauna de Souza Junior Date: Fri, 7 Jun 2024 21:43:34 -0300 Subject: [PATCH 1/3] build: initial app setup --- codecov.yml | 2 +- pyproject.toml | 6 +++--- setup.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/codecov.yml b/codecov.yml index 31d37fa..e04b775 100644 --- a/codecov.yml +++ b/codecov.yml @@ -2,7 +2,7 @@ coverage: status: project: default: - target: 80% + target: 90% # adjust accordingly based on how flaky your tests are # this allows a 10% drop from the previous base commit coverage threshold: 2% diff --git a/pyproject.toml b/pyproject.toml index f1d9907..a3e39e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] -name = "python-application" -version = "v1.0.0" -description = "Python Application" +name = "api-to-dataframe" +version = "v0.0.1" +description = "'api-to-dataframe' é uma biblioteca Python que facilita a obtenção de dados de endpoints de API, convertendo-os diretamente em DataFrames do Pandas. Esta biblioteca oferece funcionalidades robustas, incluindo estratégias de retry para requisições falhadas e geração automática de relatórios detalhados sobre os dados recebidos." authors = ["IvanildoBarauna "] readme = "README.md" license = "MIT" diff --git a/setup.py b/setup.py index 47cab81..dd9b84b 100644 --- a/setup.py +++ b/setup.py @@ -8,8 +8,8 @@ def parse_requirements(filename): setup( - name='"Python Application"', - version="1.0.0", + name='api-to-dataframe', + version="v0.0.1", packages=find_packages(), install_requires=parse_requirements("requirements.txt"), ) From 84ef25e824e527fbd7efa598fe7e3c031504c0c6 Mon Sep 17 00:00:00 2001 From: Ivanildo Barauna de Souza Junior Date: Fri, 7 Jun 2024 21:56:35 -0300 Subject: [PATCH 2/3] build: initial setup tests --- .github/workflows/CI-CD.yaml | 4 ++-- .vscode/settings.json | 7 +++++++ src/test_run.py | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 src/test_run.py diff --git a/.github/workflows/CI-CD.yaml b/.github/workflows/CI-CD.yaml index 865d466..5638d0d 100644 --- a/.github/workflows/CI-CD.yaml +++ b/.github/workflows/CI-CD.yaml @@ -52,5 +52,5 @@ jobs: - name: Build and Run Image run: | - docker build -t python-app . - docker run python-app + docker build -t api-to-dataframe . + docker run api-to-dataframe diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7a230e1 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "python.testing.pytestArgs": [ + "src" + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true +} \ No newline at end of file diff --git a/src/test_run.py b/src/test_run.py new file mode 100644 index 0000000..658af10 --- /dev/null +++ b/src/test_run.py @@ -0,0 +1,5 @@ +import pytest +from . import run + +def test_main(): + assert True \ No newline at end of file From 6035295ff4954025c9c621157248953303355067 Mon Sep 17 00:00:00 2001 From: Ivanildo Barauna de Souza Junior Date: Fri, 7 Jun 2024 22:04:05 -0300 Subject: [PATCH 3/3] chore: do not build --- .github/workflows/CI-CD.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/CI-CD.yaml b/.github/workflows/CI-CD.yaml index 5638d0d..a828163 100644 --- a/.github/workflows/CI-CD.yaml +++ b/.github/workflows/CI-CD.yaml @@ -41,16 +41,16 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.xml - build: - needs: test - if: github.actor != 'actions[bot]' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - - - name: Build and Run Image - run: | - docker build -t api-to-dataframe . - docker run api-to-dataframe + # build: + # needs: test + # if: github.actor != 'actions[bot]' + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v2 + # with: + # ref: ${{ github.head_ref }} + + # - name: Build and Run Image + # run: | + # docker build -t api-to-dataframe . + # docker run api-to-dataframe