Skip to content

Commit

Permalink
Se añadió el archivo .scrutinizer.yml. Se modificó Makefile para util…
Browse files Browse the repository at this point in the history
…izar un comando sencillo para hacer el conjunto de tests necesarios. Este comando se utilizará en scrutinizer.yml y en ci.yml.
  • Loading branch information
SantiagoFiol committed Dec 13, 2024
1 parent 1cc0d8b commit a70a44b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
LIBREDTE_HASH: ${{ secrets.LIBREDTE_HASH }}
LIBREDTE_RUT: ${{ vars.LIBREDTE_RUT }}
run: |
python3 tests/run.py dte_facturacion.test_generar_dte_temporal
make tests_dte_temp
- name: Upload pytest result report
if: failure()
Expand Down
29 changes: 29 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
checks:
python: true

build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
- command: make tests_dte_temp
coverage:
file: var/tests-coverage.xml
format: clover
environment:
python:
version: 3.11.10
dependencies:
before:
- pip install -r requirements.txt

filter:
paths:
- libredte/*
excluded_paths:
- resources/*
- tests/*
- tools/*
- var/*
- vendor/*
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ install-dev:
tests: install-dev
python tests/run.py

tests_dte_temp:
python3 tests/run.py dte_facturacion.test_generar_dte_temporal

docs:
sphinx-apidoc -o docs libredte && sphinx-build -b html docs docs/_build/html

Expand Down

0 comments on commit a70a44b

Please sign in to comment.