-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: technical review #11
Merged
Merged
Changes from 7 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
839044c
fix: general file changes
Revathyvenugopal162 a3f07ff
fix: ci-cd
Revathyvenugopal162 c068344
doc: update the docs check
Revathyvenugopal162 0c0a364
doc: update the test requirement
Revathyvenugopal162 43bdb38
debug: test requirement
Revathyvenugopal162 c2e900b
fix: revert ci-cd
Revathyvenugopal162 5a6a490
fix: checkout the lib
Revathyvenugopal162 2dd4ee4
fix: requirements from pyproject
Revathyvenugopal162 1cca9a6
fix: vale warning
Revathyvenugopal162 21d7e2d
fix: test docs deploy
Revathyvenugopal162 63cd016
fix: revert test docs deploy
Revathyvenugopal162 e45a486
docs:change readme target
Revathyvenugopal162 3949bd9
fix: test docs deploy
Revathyvenugopal162 f2f64de
Update .github/workflows/ci_cd.yml
Revathyvenugopal162 c761529
fix: spacing
Revathyvenugopal162 3b63725
fix: combine the requirement action
Revathyvenugopal162 52649c1
doc: improve action description
jorgepiloto 7bbd57e
ci: fix link for labels
jorgepiloto 0215c76
ci: add release step
jorgepiloto 61c6061
fix: actions indentation
jorgepiloto bec8b74
fix: warnings as errors for sphinx build
jorgepiloto 080ffd4
maint: include dependabot.yml
jorgepiloto 9a0bb22
ci: add release.yml workflow
jorgepiloto 34d2bb4
ci: add CODEOWNERS file
jorgepiloto 2743137
doc: fix link
jorgepiloto e37f4ac
fix: code style
jorgepiloto 511a8dd
doc: remove badges from index.rst in docs
jorgepiloto c4c894e
maint: update requirements/
jorgepiloto 2d9f099
doc: add font-awesome from cdnjs
jorgepiloto ec1bd22
fix: header underline
jorgepiloto 7b1b353
fix: update the sd icon
Revathyvenugopal162 56146d1
fix: update the fw icon dependencies
Revathyvenugopal162 9f830a8
fix: update the makfile
Revathyvenugopal162 f75169e
fix: remove unwanted function
Revathyvenugopal162 3960c87
fix: remove and dd required spaces and indentation in actions
Revathyvenugopal162 f43fcbd
fix: updat gitignore and licence
Revathyvenugopal162 adad4a9
fix: update the dependencies
Revathyvenugopal162 a3dc8bf
fix: add licence headers
Revathyvenugopal162 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,20 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/requirements" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "build" | ||
labels: | ||
- "maintenance" | ||
- "dependencies" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "build" | ||
labels: | ||
- "maintenance" |
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 |
---|---|---|
|
@@ -72,7 +72,7 @@ jobs: | |
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
Please add one of the following labels to add this contribution to the Release Notes :point_down: | ||
- [bug](https://github.com/ansys/actions/pulls?q=label%3Abug+) | ||
- [bug](https://github.com/ansys/scade-actions/pulls?q=label%3Abug+) | ||
- [documentation](https://github.com/ansys/scade-actions/pulls?q=label%3Adocumentation+) | ||
- [enhancement](https://github.com/ansys/scade-actions/pulls?q=label%3Aenhancement+) | ||
- [good first issue](https://github.com/ansys/scade-actions/pulls?q=label%3Agood+first+issue) | ||
|
@@ -84,12 +84,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: labeler | ||
steps: | ||
|
||
- uses: ansys/actions/commit-style@main | ||
- name: "Check commit style" | ||
uses: ansys/actions/commit-style@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: ansys/actions/branch-name-style@main | ||
- name: "Check branch naming convention" | ||
uses: ansys/actions/branch-name-style@v5 | ||
|
||
code-style: | ||
name: "Code style" | ||
|
@@ -137,20 +138,17 @@ jobs: | |
runs-on: [self-hosted, 'SCADE'] | ||
strategy: | ||
matrix: | ||
# scade-version: ['23.1', '23.2'] | ||
scade-version: ['23.2'] | ||
fail-fast: false | ||
steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
- name: Execute setup.py tests | ||
- name: "Execute setup.py tests" | ||
uses: ./scade-tests-pytest | ||
with: | ||
scade-version: ${{ matrix.scade-version }} | ||
library-dir: "tests/python-setup" | ||
pytest-postargs: "tests/python-setup/tests -vv" | ||
checkout: false | ||
- name: Execute pyproject tests | ||
- name: "Execute pyproject tests" | ||
uses: ./scade-tests-pytest | ||
with: | ||
scade-version: ${{ matrix.scade-version }} | ||
|
@@ -160,11 +158,65 @@ jobs: | |
|
||
doc-deploy-dev: | ||
name: "Deploy developers documentation" | ||
needs: [doc-build, tests] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && !contains(github.ref, 'refs/tags') | ||
needs: [doc-build, tests] | ||
steps: | ||
- uses: ansys/actions/doc-deploy-dev@v5 | ||
with: | ||
cname: ${{ env.DOCUMENTATION_CNAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
release: | ||
name: "Release to GitHub" | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags') | ||
needs: [doc-build, tests] | ||
steps: | ||
|
||
- name: "Download HTML documentation" | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: documentation-html | ||
path: documentation-html | ||
|
||
- name: "Zip HTML documentation" | ||
uses: vimtor/[email protected] | ||
with: | ||
files: documentation-html | ||
dest: documentation-html.zip | ||
|
||
- name: "Download PDF documentation" | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: documentation-pdf | ||
path: documentation-pdf | ||
|
||
- name: "Zip PDF documentation" | ||
uses: vimtor/[email protected] | ||
with: | ||
files: documentation-pdf | ||
dest: documentation-pdf.zip | ||
|
||
- name: "Display the structure of downloaded files" | ||
shell: bash | ||
run: ls -R | ||
|
||
- name: "Release to GitHub" | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
files: | | ||
documentation-html.zip | ||
documentation-pdf.zip | ||
|
||
doc-deploy-stable: | ||
name: "Upload stable documentation" | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags') | ||
runs-on: ubuntu-latest | ||
needs: release | ||
steps: | ||
- uses: ansys/actions/doc-deploy-stable@v5 | ||
with: | ||
cname: ${{ env.DOCUMENTATION_CNAME }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,55 @@ | ||
name: Rolling release | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
automate-tagging: | ||
name: "Perform rolling release" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Configure git" | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
|
||
- name: "Decompose tag into components" | ||
run: | | ||
if [[ ${{ github.ref_name }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
# Split the tag into its components | ||
IFS='.' read -ra PARTS <<< "${{ github.ref_name }}" | ||
echo "X=${PARTS[0]}" >> $GITHUB_ENV | ||
echo "Y=${PARTS[1]}" >> $GITHUB_ENV | ||
echo "Z=${PARTS[2]}" >> $GITHUB_ENV | ||
else | ||
echo "Invalid tag format. Expected vX.Y.Z but got ${{ github.ref_name }}" | ||
exit 1 | ||
fi | ||
|
||
- name: "Verify tag was created in the proper release branch" | ||
run: | | ||
# Remove leading "v" from env.X | ||
X_NO_V="${X:1}" | ||
# Check if the tag was created in the proper branch | ||
if [[ ${{ github.event.base_ref }} != "refs/heads/release/${X_NO_V}.${{ env.Y }}" ]]; then | ||
echo "Tag ${{ github.ref_name }} was created in the wrong branch. Expected branch name release/${X_NO_V}.${{ env.Y }}" | ||
exit 1 | ||
fi | ||
|
||
- name: "Remove old tags" | ||
run: | | ||
git push --delete origin ${{ env.X }} | ||
git push --delete origin ${{ env.X }}.${{ env.Y }} | ||
|
||
- name: "Create new tags" | ||
run: | | ||
git tag ${{ env.X }}.${{ env.Y }} | ||
git tag ${{ env.X }} | ||
git push origin ${{ env.X }}.${{ env.Y }} | ||
git push origin ${{ env.X }} |
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
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
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.
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.
FYI, I tried the usage of back ticks but the rendering is not good, the path is split on two lines, that's why I've chosen the inlining of Python-like code
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.
let me check this and try to resolve