-
Notifications
You must be signed in to change notification settings - Fork 114
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 Config] Launch testing jobs only with code changes #1941
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: oneDPL CI Docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- release_oneDPL | ||
- main | ||
- 'release/**' | ||
|
||
permissions: read-all | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: ${{ !contains(github.ref, 'refs/heads/main') }} | ||
|
||
jobs: | ||
codespell: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install prerequisites | ||
run: | | ||
sudo apt update && sudo apt install -y codespell | ||
- name: Run scan | ||
run: | | ||
${GITHUB_WORKSPACE}/.github/scripts/codespell.sh $(pwd) | ||
|
||
documentation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
- name: Install prerequisites | ||
run: | | ||
echo GITHUB_SHA_SHORT=${GITHUB_SHA::8} >> $GITHUB_ENV | ||
python -m pip install -r documentation/library_guide/requirements.txt | ||
- name: Build documentation | ||
run: | | ||
mkdir html | ||
sphinx-build -b html documentation/library_guide/ html/ | ||
- name: Archive build directory | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: onedpl-html-docs-${{ env.GITHUB_SHA_SHORT }} | ||
path: html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the important addition, everything else is just separating / moving the jobs as is to a new workflow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, we should add
examples
andmake
as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I was thinking about changes which would impact the test results.
As far as I know, we don't test the examples in the CI.
I believe the
make
configuration is more of a legacy thing which is made available to people but goes unused in the CI. I believe the CI tests usecmake
. I'm honestly not sure themake
configuration still works, it looks like you had the last change to that directory, are you still using / maintaining those build files?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
about make:
I don't know reasons why 'make' would not work.
Make configuration still works, I use it.
But if CI doesn't use make files, we can exclude that folder, of course.
"we don't test the examples in the CI."..
Interesting, it was done intentionally to minimize
CI per commit
time or just we forgot about that?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I understand, the CI generates "fresh" build configuration using
cmake
, then uses that build configuration to build the tests. Of course, there is nothing wrong with using the make config if it works, it just has not changed much in the last few years and I don't actively use it. So I'm not aware of its current support for all cases.Its possible we build and run the examples and I am unaware of it. I can try to look into this. It would be a good idea to do if we aren't already. I suppose we can add it in here in anticipation of adding these to the CI in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the paths include CMakeLists.txt as well? This is what the CI uses.
Including the rest (e.g.
make
andexamples
) seems unnecessary to me as it is not currently handled by the CI. Moreover, when CI is skipped, it is a good indicator that a certain feature has not been tested.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point about
CMakeLists.txt
...Let me add that.
I'm OK with leaving out
examples
for now, and adding it if we add it in the future to the CI.