Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/CI-CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 python-app .
docker run python-app
# 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
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.testing.pytestArgs": [
"src"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <ivanildo.jnr@outlook.com>"]
readme = "README.md"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)
5 changes: 5 additions & 0 deletions src/test_run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pytest
from . import run

def test_main():
assert True