-
Notifications
You must be signed in to change notification settings - Fork 3
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
Github actions and tests #166
Conversation
with nit-picky modeand turn warnings into errors
8a67bf7
to
aba0e78
Compare
aba0e78
to
0096ca7
Compare
And: Add to .gitignore
e4e75f8
to
0d50c35
Compare
@duncandewhurst @lgs85 (cc @odscjames) I thought it might make sense to apply fixes for the tests on this branch, either by correcting files or adjusting the parameters for the tests themselves, and merge once we have all tests passing. I'm going to start looking at the schema specific tests, but thought it might be useful to continue those a separate PR, so let me know how you'd like to split that work out. |
Thanks, @Lathrisk! I think that
Yes, that makes sense. I've run mdformat and committed the changes. (Edit: pytest reports some issues that still need to be resolved). Can you configure linkcheck to report only broken links? Currently, it's quite hard to spot the broken links amongst all the successful links.
I don't have a preference, whatever makes sense to you - I don't know if you need to hang the schema-specific tests off the Github actions workflow that you have added in this PR. |
I'm not sure how opinionated we are on each of these issues. We could update the code, adapt the tests, or remove the tests in each instance. The current tests are opintionated based on the JSCC library
I'll have a look, I assume that will be relatively trivial.
Double asterisk should match to any depth. I'll look into that and see if there's a reason it isn't working. |
This reverts commit 458b6ff.
@Lathrisk I reverted your last commit (458b6ff) because it erroneously removed whitespace within codelist descriptions. Let's go with the JSCC defaults, which I understand to be:
I've merged in A couple of questions:
Edit: I forgot to say that the change to the |
@duncandewhurst I reckon a codelist schema would remove any ambiguity in things like header formatting etc. It seems like a good addition. I've not written any json schema but can take a look. I suspect a modified version of the one you linked to. It's the regex that might catch me out on the code property (and mapping that to what's in the CSVs currently)! |
Simple codelist schema missing regex for the Code value. WIP.
Thanks! Unless there's a particular reason to separate the dependencies for building and testing, I'd prefer a single requirements file to keep the process for installing and updating requirements simpler. I think that we can start with the
^([a-z]+([A-Z][a-z]+)*|[A-Z]+[0-9]?|[a-z]+(.[a-z]+)*|LineString|Point|(application|audio|font|example|image|message|model|multipart|text|video)/[\\w.+-]+|[A-Z]{2}([-_][A-Z]+)+|G.65[1-9](\.1)?|tag:opentelecomdata\.net,2022:(nodes|spans)(API|File))$ |
From what I read this only works if a special option is turned on in the shell. It looks like "mdformat docs" works recursively so I'll use that. (Will put in pre-commit too) |
This PR is being split into separate ones, and applied one at a time. There were to many commits and to many things being done at once here to comment on and finish up effectively. If we had tried to finish this one, it would be ages before any improvements made it to a working branch - by splitting it up we have already merged some improvements to a working branch. We'll leave this PR open, and only close it when we are sure all work from here has been moved to other PR's. This is going to be careful manual work, there aren't shortcuts here we can take. We'll just have to check things carefully as we make new PR's, and check this carefully before closing it. eg in #208 we missed that something we asked a question about was already fixed in commit 1ea4598 - however the commit message for that commit just said "docs: Run mdformat " and made no reference to the fact that some content had been edited by hand. There was also no change log entry. A nice example of why we want to ensure good commit history - it really helps when going back through things later! |
I think all relevant bits from this have been put into 0.1-dev and this can be closed? This was tested by manually copying all the files from this PR over the latest files, then looking at the git diffs to make sure that nothing unexpected turned up. |
How are you getting that diff? I just tried the /compare function on GitHub (cos it looks like a GitHub screenshot) and the results were not useful at all - it looked like it was getting confused by the branch separation. For the example you highlighted, if you look at :
You can see they are actually the same. |
I used the following link: 0.1-dev...github-actions I don't want to check individual files for differences manually as it'll be time-consuming and I'm likely to miss things so I was hoping that I could get a usable diff to compare. |
Yeah, GitHub is not helping here. Try:
It starts:
In this case the minus shows things in the PR that aren't in the live branch - so continue-on-error is in the PR but not in the main branch. (For that one: I couldn't see any message explaining why it was needed and I couldn't see any good reason it should be there so I didn't copy it across) |
Thanks for the advice! I reviewed the diff and it all looks as expected so I'll close this PR. |
Related issues
#test
Description
Adding tests, and github actions workflows.