Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix doctest script #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix doctest script #19

wants to merge 2 commits into from

Conversation

ericphanson
Copy link
Member

@ericphanson ericphanson commented Aug 19, 2021

Now we run two jobs:

  • One does the diff_context which is the default, and generates github suggestions. However it only looks at the diff-- any doctests failing elsewhere are ignored.
  • one uses the nofilter context and can only make "annotations" (like codecov). These you can toggle visibility by pressing "a". They aren't committable, just for awareness. The workflow will fail if there are any annotations, i.e. any changed doctests.

The previous way was only the first job.

I experimented with this on an internal repo, though I should've done it on a public one so everyone can see the experiments.

This addresses @christopher-dG's concern in #18 (comment).

@@ -26,8 +42,10 @@ jobs:
- uses: codecov/codecov-action@v1
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed for public repos I think:

Suggested change
token: ${{ secrets.CODECOV_TOKEN }}

@ericphanson
Copy link
Member Author

Looks like this might be able to be bundled into a single action: julia-actions/julia-fix-doctests#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant