-
Notifications
You must be signed in to change notification settings - Fork 5
[Testing CI/CD] Results view update #242
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
Open
jnywong
wants to merge
24
commits into
main
Choose a base branch
from
results_view_update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c5e93f9
Add percent completion property to Evaluation model and update versio…
rhoadesScholar 921bc8f
Fix download results URL path and update link in version template
rhoadesScholar 5170857
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f41f154
Add GHA to build image on PR request
jnywong f1c986b
Add GHA to build image on PR request
jnywong 98f0e5e
Merge branch 'main' into results_view_update
jnywong d36a562
Merge branch 'main' into results_view_update
jnywong 864c23c
Update publish-chart.yaml
jnywong 7b20dc1
Remove docker login action
jnywong 743d351
Add login action back
jnywong efb3957
Regenerate robot account credentials
jnywong 47be808
Fix typo
jnywong 1044a23
Publish chart on PR and push to main
jnywong 9a4dc98
Remove extra GHA
jnywong a4981ec
Add on pull_request
jnywong c9a947e
Update GHA
jnywong 31ca558
Merge branch '2i2c-org:results_view_update' into results_view_update
rhoadesScholar 83bf4c1
Refactor version template for improved readability and structure
rhoadesScholar afbeb9e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 439ca6f
Update version.html
rhoadesScholar 3b5db7f
Fix 'is_collaborator' logic
jnywong 15c7cab
Fix function input
jnywong d74a072
Add if condition
jnywong 8b90cbf
Update frx_challenges/web/views/versions.py
jnywong 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -41,40 +41,20 @@ jobs: | |
|
|
||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.11" | ||
|
|
||
| - name: Decide to publish or not | ||
| id: publishing | ||
| shell: python | ||
| run: | | ||
| import os | ||
| repo = "${{ github.repository }}" | ||
| event = "${{ github.event_name }}" | ||
| ref = "${{ github.event.ref }}" | ||
| publishing = "" | ||
| if ( | ||
| repo == "2i2c-org/frx-challenges" | ||
| and event == "push" | ||
| and ( | ||
| ref.startswith("refs/tags/") | ||
| or ref == "refs/heads/main" | ||
| ) | ||
| ): | ||
| publishing = "true" | ||
| print("Publishing chart") | ||
| with open(os.environ["GITHUB_OUTPUT"], "a") as f: | ||
| f.write(f"publishing={publishing}\n") | ||
| python-version: "3.12" | ||
|
|
||
| - name: Set up QEMU (for docker buildx) | ||
| uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - name: Set up Docker Buildx (for chartpress multi-arch builds) | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Setup push rights to Quay.io | ||
| if: steps.publishing.outputs.publishing | ||
| run: | | ||
| docker login -u "${{ secrets.QUAY_USERNAME }}" -p "${{ secrets.QUAY_PASSWORD }}" quay.io | ||
| - name: Login to Quay.io | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: quay.io | ||
| username: ${{ secrets.QUAY_USERNAME }} | ||
| password: ${{ secrets.QUAY_PASSWORD }} | ||
|
|
||
| - name: Set up push rights to frx-challenges-helm-chart | ||
| # This was setup by... | ||
|
|
@@ -86,7 +66,6 @@ jobs: | |
| # 3. Registering the public key (gh-pages.pub) as a deploy key | ||
| # with push rights for the 2i2c-org/frx-challenges-helm-chart repo: | ||
| # https://github.com/2i2c-org/frx-challenges-helm-chart/settings/keys | ||
| if: steps.publishing.outputs.publishing | ||
| run: | | ||
| mkdir -p ~/.ssh | ||
| ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
|
|
@@ -104,21 +83,13 @@ jobs: | |
| git config --global user.email "[email protected]" | ||
| git config --global user.name "github-actions" | ||
|
|
||
| - name: Build image, push if necessary | ||
| env: | ||
| PUBLISHING: ${{ steps.publishing.outputs.publishing }} | ||
| - name: Build image and push | ||
| run: | | ||
| CHARTPRESS_ARGS="" | ||
| if [[ "${PUBLISHING}" == "true" ]]; then | ||
| CHARTPRESS_ARGS="--push" | ||
| fi | ||
| chartpress \ | ||
| --builder docker-buildx \ | ||
| --platform linux/amd64 --platform linux/arm64 \ | ||
| ${CHARTPRESS_ARGS} | ||
| --platform linux/amd64 --platform linux/arm64 | ||
|
|
||
| - name: Publish chart with chartpress | ||
| if: steps.publishing.outputs.publishing | ||
| run: | | ||
| set -eux | ||
|
|
||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -163,3 +163,7 @@ cython_debug/ | |
|
|
||
| # MyST | ||
| _build | ||
|
|
||
| # VS Code | ||
| .DS_Store | ||
| .vscode/ | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.