Closed santisoler closed 4 years ago
@leouieda Should we also remove the .codecov.yml
file?
Yeah, if we're not running the tests on CI then it's kind of useless.
We'll also need to remove the requirements for coverage from the PR status checks.
@santisoler I'm going to push the updates to the travis config here to see if we can trigger the build.
Thanks Leo!
@leouieda I've modified some targets in doc/Makefile
. By default it will not run the gallery examples. I have added two more targets:
gallery
: for running the gallery and building the entire website.clean-gallery
: for removing the doc/gallery
directory.What do you think about this?
So to build the docs for a new gallery plot we'd have to run make gallery
only? Is that needed actually? Wouldn't sphinx-gallery know not to rebuild the examples since they are in the repository already?
So to build the docs for a new gallery plot we'd have to run make gallery only? Is that needed actually? Wouldn't sphinx-gallery know not to rebuild the examples since they are in the repository already?
Yes, sphinx-gallery
would know not to build the gallery examples if the built files are in doc/gallery
. If we are opening a PR with a new example but we haven't built the gallery yet, then the CIs will try to build them, and we want to avoid that. That's why I though it would be better to explicitly instruct CIs not to build the examples.
Ah right, as always you saw something I overlooked :slightly_smiling_face: Did I ever mention that I'm really glad you got on board?
OK, then I fully agree with the idea of separating the gallery plot.
Add minimal test function that checks if all files in registry are available for download. Run only style checks on Azure Pipelines. Run only a single Travis CI configuration with Python 3.6 that runs the minimal test, style checks and deploys documentation and releases to PyPI. Remove uploading coverage to Codecov. Remove
doc/gallery
form.gitignore
. Add all files insidegallery/doc
. Create new targets fordoc/Makefile
:html-noplot
,gallery
andclean-gallery
. The first one builds the website without running examples, the second one runs the examples and builds the website, the third one cleans doc/gallery directory. Change default targetall
tohtml-noplot
. Update Pull Request template fromfatiando/.github
and add new remainders for contributors to build the docs and push changes ondoc/gallery
, and for maintainers to run all tests before merging the PR.Fixes #77
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.