Enable branch coverage, upload test results and use Codecov OIDC
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- github-actions, python
- Área
- ci-cd, testing-qa
Línea de trabajo
The change touches pyproject.toml ([tool.coverage.run]), tox.ini ([testenv] pytest call), .github/workflows/main.yml (the codecov-action steps and job permissions), and a new .codecov.yml. Start by reading the workflow and the tox config, then check the reference pattern in scrapinghub/andi. Done means the four checks pass, but open PR #1612 already covers this work, so review it rather than starting a new change.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
dateparser is currently missing four checks tracked by the Zyte OSS maintenance report:
codecov-test-results: nocodecov/codecov-actionstep withreport_type: test_resultscodecov-auth: expected OIDC, found a token in.github/workflows/main.ymlcodecov-status: no Codecov config filebranch-coverage: nobranch = truein coverage config, and no--cov-branch
Proposed changes
pyproject.toml: addbranch = trueunder[tool.coverage.run].tox.ini: add--junitxml=testenv.junit.xml -o junit_family=legacyto the pytest invocation in[testenv], so a JUnit XML report is produced to upload.- New
.codecov.yml: disable the patch status and set the project status target to the current coverage (not 100%, since dateparser's coverage isn't there yet), e.g.:coverage: status: project: default: target: <current coverage>% patch: false .github/workflows/main.yml:- add
id-token: writeto the job'spermissions(needed for OIDC) - replace the token-based
codecov/codecov-actionstep with one usinguse_oidc: trueinstead oftoken: ${{ secrets.CODECOV_TOKEN }} - add a second
codecov/codecov-actionstep withreport_type: test_results(anduse_oidc: true) to upload the JUnit XML, gated onif: ${{ !cancelled() }}
- add
scrapinghub/andi's .github/workflows/test.yml already implements this OIDC + test-results pattern for a sibling scrapinghub project and can be used as a reference. scrapy/cssselect#225 did the equivalent test-results + config-file work for a scrapy-org project (tokenless there, since OIDC is only required for the scrapinghub org).
Heads up
Open PR #1567 ("Support Python 3.11-3.15: drop 3.10, add 3.15") also modifies .github/workflows/main.yml, so expect a minor merge conflict between the two.
- Lenguaje dominante
- Python
- Estrellas
- 2.9k
- Forks
- 545
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 17
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de scrapinghub/dateparser
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
scrapinghub/dateparser#1617 ·
Los mantenedores suelen responder en 1 día
-
StaticTzInfo has localize() but not normalize(), so pytz-detecting code crashes on itQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 70/100
scrapinghub/dateparser#1591 ·
Los mantenedores suelen responder en 1 día
-
Validate on Python 3.15Posiblemente ocupada @kishan3 la tomó hace 25 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
scrapinghub/dateparser#1548 ·
Los mantenedores suelen responder en 1 día
-
search_dates() raises IndexError for the zh-Hans, zh-Hant and yue localesPosiblemente ocupada @abhi-0203 la tomó hace 88 días. Abiertosearch_dates Status: Bug confirmed Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
scrapinghub/dateparser#1372 ·
Los mantenedores suelen responder en 1 día
-
Adopt sphinx-scrapy, with docs dependencies in a dependency groupPosiblemente ocupada @yamilmaud la tomó hace 3 días. Abierto
Dificultad 3/5 Medio día Aptitud para principiantes 25/100
scrapinghub/dateparser#1613 ·
Los mantenedores suelen responder en 1 día
Todos los issues de scrapinghub/dateparser
Issues similares
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount duePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 79/100
developmentseed/titiler-covjson#164 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
awslabs/visual-asset-management-system#2164 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
MakazhanAlpamys/Soup#3589 ·
Los mantenedores suelen responder en 1 día
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día