-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#185) Adição de testes unitários para todas as fontes de dados e ref…
…atoração do repositório
- Loading branch information
1 parent
3bd78bd
commit d844832
Showing
279 changed files
with
11,341 additions
and
852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[run] | ||
omit = scripts/tests/*,scripts/epe_matriz.py,*/__init__.py,scripts/main.py, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: run main.py | ||
|
||
on: | ||
schedule: [{cron: "0 19 * * 3"}] #agendamento | ||
schedule: [{cron: "0 0 * * 3"}] #agendamento | ||
|
||
jobs: | ||
build: | ||
|
@@ -20,7 +20,7 @@ jobs: | |
pip install bs4==0.0.1 | ||
pip install openpyxl==3.1.2 | ||
- name: execute py script # run main.py | ||
run: python 04_PipelineTCU/main.py | ||
run: python scripts/main.py | ||
- name: commit files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Python Linter | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 | ||
pip install pylint | ||
- name: Lint flake8 | ||
run: | | ||
flake8 scripts --ignore=E203,W291,W293 --max-line-length=240 --show-source --statistics | ||
find . -type f -name "*.py" -exec pylint --disable=C0103,C0301,C0114,W0703,W0622,R0913,E1101,R0903,R0915,R0912,W0612,E0401 -j 0 --exit-zero {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: teste-unitario-automatizado | ||
|
||
on: # Quando o usuário realizar um push, será feito os testes | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
- name: Test with pytest | ||
run: | # Vai realizar os testes | ||
pip install pytest | ||
pip install pytest-cov | ||
pytest --cov-config=.coveragerc --cov=scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
env* | ||
venv* | ||
04_PipelineTCU/__pycache__ | ||
scripts/__pycache__ | ||
scripts/scrappers/__pycache__ | ||
scripts/handlers/__pycache__ | ||
scripts/tests/__pycache__ | ||
.coverage | ||
.pytest_cache |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.