diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index fecdbb13..00000000 --- a/.coveragerc +++ /dev/null @@ -1,28 +0,0 @@ -# .coveragerc to control coverage.py -[run] -branch = True -source = src -# omit = bad_file.py - -[paths] -source = - src/ - */site-packages/ - -[report] -# Regexes for lines to exclude from consideration -exclude_lines = - # Have to re-enable the standard pragma - pragma: no cover - - # Don't complain about missing debug-only code: - def __repr__ - if self\.debug - - # Don't complain if tests don't hit defensive assertion code: - raise AssertionError - raise NotImplementedError - - # Don't complain if non-runnable code isn't run: - if 0: - if __name__ == .__main__.: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..9164f3ff --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.7' + - name: Verificar version de Python + run: | + python --version + - name: Instalación de librerías y dependencias + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: pruebas+coverage + id: pruebas + run: | + pwd + ls + python -m coverage run -m unittest discover -s tests -v + echo 'Miramos el reporte' + coverage report + echo 'Guardamos archivo' + python -m coverage xml -i + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index bf66c587..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: CI - -# Controls when the action will run. -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - job1: - name: Pruebas - runs-on: ubuntu-latest - steps: - - name: Checkout de repositorio - uses: actions/checkout@v2 - - name: Configuración de entorno de python - uses: actions/setup-python@v2 - with: - python-version: '3.7' - - name: Instalación de librerías y dependencias - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Correr pruebas - id: correr-pruebas - run: python -m unittest discover -s tests diff --git a/__pycache__/setup.cpython-310.pyc b/__pycache__/setup.cpython-310.pyc new file mode 100644 index 00000000..c6d69b82 Binary files /dev/null and b/__pycache__/setup.cpython-310.pyc differ diff --git a/aplicacion.sqlite b/aplicacion.sqlite new file mode 100644 index 00000000..30913307 Binary files /dev/null and b/aplicacion.sqlite differ diff --git a/reports/index.html b/reports/index.html index ae321397..8cc57c65 100644 --- a/reports/index.html +++ b/reports/index.html @@ -1222,8 +1222,6 @@ // middle point has same y points[k + 1] = points[k - ps + 1]; - // we've added a point, better reflect that - k += ps; } } } @@ -4417,9 +4415,9 @@
Statistical information for the repository 'MISW-4101-Practicas-TutorialCancionesTags' was gathered on 2021/02/16.
The output has been generated by gitinspector 0.5.0dev. The statistical analysis tool for git repositories.
The following historical commit information, by author, was found.
| Author | Commits | Insertions | Deletions | % of changes |
|---|---|---|---|---|
| 33 | 2514 | 124 | 100.00 | |
The following historical commit information, by author, was found.
| Author | Commits | Insertions | Deletions | % of changes |
|---|---|---|---|---|
| 33 | 2514 | 124 | 100.00 | |
The following history timeline has been gathered from the repository. (Green = Additions , Red = Deletions)
-| Author | 08/02 - 14/02 |
|---|---|
| Modified Rows: | 2638 |
| Author | 08/02 - 14/02 |
|---|---|
| Modified Rows: | 2638 |
The following file participation percentage table, by author, was calculated.
| File | Author | Percentage |
|---|---|---|
| docs/conf.py | avargas20 | 100.0% |
| src/__main__.py | avargas20 | 100.0% |
| setup.py | avargas20 | 100.0% |
| src/modelo/album.py | avargas20 | 100.0% |
| src/modelo/cancion.py | avargas20 | 100.0% |
| src/logica/coleccion.py | avargas20 | 100.0% |
| src/modelo/interprete.py | avargas20 | 100.0% |
| src/modelo/declarative_base.py | avargas20 | 100.0% |
| src/vista/interfaz_coleccion.py | avargas20 | 100.0% |
| src/vista/vista_album.py | avargas20 | 100.0% |
| src/vista/vista_busqueda.py | avargas20 | 100.0% |
| src/vista/vista_cancion.py | avargas20 | 100.0% |
| tests/test_album.py | avargas20 | 100.0% |
| src/vista/vista_lista_cancion.py | avargas20 | 100.0% |
| src/vista/vista_lista_album.py | avargas20 | 100.0% |
| tests/test_cancion.py | avargas20 | 100.0% |
| tests/test_interprete.py | avargas20 | 100.0% |