2026-01-26-pytest
Lecture 1
- Badges (code coverage + codecov.io)
- Quarto website examples, front page, setup, get started pages
- CI: website deployment preview
- discuss semantic versioning and convensional commits
Lecture 2
- Semantic release based on tag version
- Licensing
Class notes
badges and external CI/CD tools:
- code coverage: https://py-pkgs.org/08-ci-cd#recording-code-coverage
- install code coverage github app
- find repo
- click configure
- setup
- use github actions
- select pytest
- change
--cov-report=xml- pytest –cov –cov-branch –cov-report=xml
- get token info for CODECOV_TOKEN (from configure page)
- check for the link (else you probably didn’t have a token)
- refresh the codecoverage repo page
- badge
- configuration page there’s a badge + graphs section
- copy the markdown badge (we are using quarto + quartodoc, rst is for sphinx)
- website deployment previews
- https://www.netlify.com/
- you may be asked to install app after you connect with github
- deploy new project from github (may trigger app install here)
- use a random project name for now (it’s a deployment preview, don’t clutter the namespace if you don’t need to)
- leave everything else blank, we will push from github actions
- NETLIFY_AUTH_TOKEN: this is the Netlify PAT
- NETLIFY_SITE_ID: you can find tihs in the Netlify website configuration page
- use the example yaml file, note that it’s PR only (why does this make sense?)
- workflow needs read+right permissions