Skip to content

Commit

Permalink
feat(github): automate model generation (#238)
Browse files Browse the repository at this point in the history
* chore(doc): remove generated apidocs from packaging

* chore(models): update list of available models from jumpstart

* feat(github): add workflow for model and DLC images gen

* chore(models): remove neuron models because of runtime crash

* chore(mutation): fix mutation

* chore(action version): fix pr comment

* chore(github): update workflow to add missing authentication

* chore(github): update region to use an env variable

* chore(gh_action): update github action versions

---------

Co-authored-by: Heitor Vital <[email protected]>
  • Loading branch information
krokoko and hvital authored Feb 14, 2024
1 parent 690afe2 commit 6103a73
Show file tree
Hide file tree
Showing 10 changed files with 463 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 91 additions & 0 deletions .github/workflows/code-generation.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
runSemGrepWorkflow,
runBanditWorkflow,
runCommitLintWorkflow,
buildCodeGenerationWorkflow,
} from './projenrc/github-workflows';

// Constants
Expand Down Expand Up @@ -116,8 +117,9 @@ buildOrtToolkitWorkflow(project);
runSemGrepWorkflow(project);
runBanditWorkflow(project);
runCommitLintWorkflow(project);
buildCodeGenerationWorkflow(project);

// Add specific overrides https://projen.io/github.html#actions-versions
// Add specific overrides https://projen.io/docs/integrations/github/#actions-versions
project.github?.actions.set('actions/checkout@v3', 'actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744');
project.github?.actions.set('actions/download-artifact@v3', 'actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a');
project.github?.actions.set('actions/github-script@v6', 'actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410');
Expand All @@ -135,6 +137,7 @@ project.github?.actions.set('oss-review-toolkit/ort-ci-github-action@v1', 'oss-r
project.github?.actions.set('peter-evans/create-issue-from-file@v4', 'peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f');
project.github?.actions.set('peter-evans/create-pull-request@v4', 'peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54');
project.github?.actions.set('peter-evans/create-pull-request@v5', 'peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38');
project.github?.actions.set('aws-actions/[email protected]', 'aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502');

// We don't want to package certain things
project.npmignore?.addPatterns(
Expand All @@ -153,6 +156,7 @@ project.npmignore?.addPatterns(
'projenrc',
'tsconfig.dev.json',
'yarn.lock',
'/apidocs/',
);

// Add License header automatically
Expand Down
Loading

0 comments on commit 6103a73

Please sign in to comment.