Load when writing or modifying pytest tests that touch pymc.Model, pm.sample, or any PyMC model code. Covers pymc.testing.mock_sample, pytest fixtures for Bayesian models, and the distinction between fast structure-only tests (mocking) and slow posterior inference tests. Triggers include: testing PyMC, pytest with pymc, unit tests for Bayesian models, mock sampling, test fixtures for models, CI/CD for PyMC.
$npx -y skills add pymc-labs/python-analytics-skills --skill pymc-testingInstalls into the current project.
Run `npx skills use "https://github.com/pymc-labs/python-analytics-skills" --skill "pymc-labs/python-analytics-skills/pymc-testing"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/pymc-labs/python-analytics-skills" that are relevant to the current task. Run `npx skills add "https://github.com/pymc-labs/python-analytics-skills"` and select the relevant skills, then follow their instructions.