On each commit to dev, there should be a GitHub action that tries to build the API docs and the scadnano-x.x.x.tar.gz file that is uploaded to PyPI. This way, if either of these fails, we know that the docs or PyPI package action will fail when committed to master.
The checks could pass and the action on commit to master could still fail, but at least this way it would not be because the files simply could not be generated.