Enable branch coverage, upload test results and use Codecov OIDC
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- github-actions, python
- Ambito
- ci-cd, testing-qa
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 2.9k
- Fork
- 545
- Merge medio
- 2g 4h
- PR unite (30g)
- 17
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di scrapinghub/dateparser
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
scrapinghub/dateparser#1617 ·
I maintainer di solito rispondono entro 1 giorno
-
StaticTzInfo has localize() but not normalize(), so pytz-detecting code crashes on itForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
scrapinghub/dateparser#1591 ·
I maintainer di solito rispondono entro 1 giorno
-
Validate on Python 3.15Forse già presa @kishan3 l’ha presa 25 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
scrapinghub/dateparser#1548 ·
I maintainer di solito rispondono entro 1 giorno
-
search_dates() raises IndexError for the zh-Hans, zh-Hant and yue localesForse già presa @abhi-0203 l’ha presa 88 giorni fa. Apertasearch_dates Status: Bug confirmed Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
scrapinghub/dateparser#1372 ·
I maintainer di solito rispondono entro 1 giorno
-
Adopt sphinx-scrapy, with docs dependencies in a dependency groupForse già presa @yamilmaud l’ha presa 3 giorni fa. Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 25/100
scrapinghub/dateparser#1613 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di scrapinghub/dateparser
Issue simili
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount dueForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 79/100
developmentseed/titiler-covjson#164 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
awslabs/visual-asset-management-system#2164 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
MakazhanAlpamys/Soup#3589 ·
I maintainer di solito rispondono entro 1 giorno
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno