forked from opendatahub-io/notebooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request opendatahub-io#60 from opendatahub-io/2023b
Sync release 2023b branch with upstream
- Loading branch information
Showing
78 changed files
with
41,440 additions
and
852 deletions.
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 |
---|---|---|
@@ -1,14 +1,25 @@ | ||
name: Add Issues to ODH Feature Tracking Project | ||
on: | ||
--- | ||
name: Auto Add Issues to Tracking boards | ||
on: # yamllint disable-line rule:truthy | ||
issues: | ||
types: | ||
- opened | ||
jobs: | ||
add-to-project: | ||
name: Add issue to project | ||
name: Add issue to projects | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate github-app token | ||
id: app-token | ||
uses: getsentry/action-github-app-token@v2 | ||
with: | ||
app_id: ${{ secrets.DEVOPS_APP_ID }} | ||
private_key: ${{ secrets.DEVOPS_APP_PRIVATE_KEY }} | ||
- uses: actions/add-to-project@v0.5.0 | ||
with: | ||
project-url: https://github.com/orgs/opendatahub-io/projects/40 | ||
github-token: ${{ secrets.GH_TOKEN }} | ||
github-token: ${{ steps.app-token.outputs.token }} | ||
- uses: actions/add-to-project@v0.5.0 | ||
with: | ||
project-url: https://github.com/orgs/opendatahub-io/projects/45 | ||
github-token: ${{ steps.app-token.outputs.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,42 @@ | ||
--- | ||
name: Code static analysis | ||
on: [pull_request] # yamllint disable-line rule:truthy | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
code-static-analysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Validate YAML files (best code practices check included) | ||
id: validate-yaml-files | ||
uses: ibiqlik/action-yamllint@v3.1.1 | ||
with: | ||
config_file: ./ci/yamllint-config.yaml | ||
|
||
# In some YAML files we use JSON strings, let's check these | ||
- name: Validate JSON strings in YAML files (just syntax) | ||
id: validate-json-strings-in-yaml-files | ||
run: | | ||
type json_verify || sudo apt-get install yajl-tools | ||
bash ./ci/check-json.sh | ||
- name: Validate JSON files (just syntax) | ||
id: validate-json-files | ||
run: | | ||
type json_verify || sudo apt-get install yajl-tools | ||
shopt -s globstar | ||
ret_code=0 | ||
echo "-- Checking a regular '*.json' files" | ||
for f in **/*.json; do echo "Checking: '${f}"; echo -n " > "; cat $f | json_verify || ret_code=1; done | ||
echo "-- Checking a 'Pipfile.lock' files" | ||
for f in **/Pipfile.lock; do echo "Checking: '${f}"; echo -n " > "; cat $f | json_verify || ret_code=1; done | ||
echo "-- Checking a '*.ipynb' Jupyter notebook files" | ||
for f in **/*.ipynb; do echo "Checking: '${f}"; echo -n " > "; cat $f | json_verify || ret_code=1; done | ||
if test "${ret_code}" -ne 0; then | ||
echo "There were errors in some of the checked files. Please run `json_verify` on such files and fix issues there." | ||
fi | ||
exit "${ret_code}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
# This GitHub action is meant to be triggered weekly in order to update the pipfile.locks | ||
|
||
name: Weekly Pipfile.locks renewal on [2023b] branch | ||
|
||
on: # yamllint disable-line rule:truthy | ||
# Triggers the workflow every Monday at 22pm UTC am 0 22 * * 1 | ||
schedule: | ||
- cron: "0 22 * * 1" | ||
workflow_dispatch: # for manual trigger workflow from GH Web UI | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the | ||
# added or changed files to the repository. | ||
contents: write | ||
|
||
steps: | ||
# Checkout the paricular branch | ||
- name: Checkout code from the release branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 2023b | ||
token: ${{ secrets.GH_ACCESS_TOKEN }} | ||
|
||
# Setup Python environment | ||
- name: Setup Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: | | ||
3.8 | ||
3.9 | ||
- name: Install pipenv | ||
run: pip install pipenv | ||
|
||
# Runs the makefile recipe `refresh-pipfilelock-files` and push the chances back to the branch | ||
- name: Run make refresh-pipfilelock-files and push the chances back to the branch | ||
run: | | ||
make refresh-pipfilelock-files | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "GitHub Actions" | ||
git add . | ||
git commit -m "Update the pipfile.lock via the weekly workflow action" | ||
git push |
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.