Merge pull request #382 from anyangml2nd/fix/model-name #172
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
| name: Run LAMBench | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| args: | |
| description: Arguments to pass to `lambench` | |
| required: false | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - lambench/models/**.yml | |
| - lambench/tasks/**.yml | |
| jobs: | |
| run-lambench: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: pip | |
| - name: Install dependencies | |
| run: | | |
| pip install .[dflow] | |
| - name: Manual Approval | |
| uses: trstringer/manual-approval@v1 | |
| if: github.event_name == 'push' | |
| with: | |
| secret: ${{ github.token }} | |
| approvers: ${{ vars.APPROVERS }} | |
| minimum-approvals: 1 | |
| fail-on-denial: false | |
| - name: Run LAMBench | |
| env: | |
| MYSQL_HOST: ${{ vars.MYSQL_HOST }} | |
| MYSQL_DATABASE_NAME: ${{ vars.MYSQL_DATABASE_NAME }} | |
| MYSQL_USERNAME: ${{ secrets.MYSQL_USERNAME }} | |
| MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }} | |
| DFLOW_HOST: ${{ vars.DFLOW_HOST }} | |
| DFLOW_K8S_API_SERVER: ${{ vars.DFLOW_K8S_API_SERVER }} | |
| DFLOW_S3_REPO_KEY: ${{ vars.DFLOW_S3_REPO_KEY }} | |
| DFLOW_S3_STORAGE_CLIENT: ${{ vars.DFLOW_S3_STORAGE_CLIENT }} | |
| BOHRIUM_PROJECT_ID: ${{ vars.BOHRIUM_PROJECT_ID }} | |
| BOHRIUM_USERNAME: ${{ secrets.BOHRIUM_USERNAME }} | |
| BOHRIUM_AUTHORIZATION: ${{ secrets.BOHRIUM_AUTHORIZATION }} | |
| BOHRIUM_PASSWORD: ${{ secrets.BOHRIUM_PASSWORD }} | |
| run: | | |
| lambench ${{ github.event.inputs.args }} |