Testing gha setup #24
Workflow file for this run
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: Static Checks | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: [push] | |
| jobs: | |
| login-to-amazon-ecr: | |
| runs-on: | |
| - codebuild-holosoma-gpu-build-${{ github.run_id }}-${{ github.run_attempt }} | |
| # - codebuild-holosoma-cpu-build-${{ github.run_id }}-${{ github.run_attempt }} | |
| steps: | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: us-west-2 | |
| # mask-aws-account-id: 'false' | |
| # use-existing-credentials: true | |
| role-session-name: gha-${{ github.run_id }}-${{ github.run_attempt }} | |
| - name: Setup ecr-cred helper | |
| run: | | |
| sudo apt update | |
| sudo apt install -y amazon-ecr-credential-helper | |
| mkdir -p ~/.docker | |
| echo '{"credsStore": "ecr-login"}' > ~/.docker/config.json | |
| # - name: Checkout code | |
| # uses: actions/checkout@v4 | |
| # with: | |
| # ref: ${{ github.event.inputs.branch || 'main' }} | |
| # path: holosoma | |
| # - name: check code | |
| # run: | | |
| # ls -la | |
| # ls -la "$GITHUB_WORKSPACE" | |
| # ls -la "$GITHUB_WORKSPACE/holosoma" | |
| # - name: Login to ECR | |
| # uses: docker/login-action@v3 | |
| # with: | |
| # registry: 982423663241.dkr.ecr.us-west-2.amazonaws.com | |
| # - name: Login to Amazon ECR | |
| # id: login-ecr | |
| # uses: aws-actions/amazon-ecr-login@v2 | |
| # with: | |
| # # needed to use creds for pulling later | |
| # mask-password: 'false' | |
| # outputs: | |
| # registry: ${{ steps.login-ecr.outputs.registry }} | |
| # docker_username: ${{ steps.login-ecr.outputs.docker_username_982423663241_dkr_ecr_us_west_2_amazonaws_com }} | |
| # docker_password: ${{ steps.login-ecr.outputs.docker_password_982423663241_dkr_ecr_us_west_2_amazonaws_com }} | |
| run-in-container: | |
| runs-on: | |
| - codebuild-holosoma-gpu-build-${{ github.run_id }}-${{ github.run_attempt }} | |
| # - codebuild-holosoma-cpu-build-${{ github.run_id }}-${{ github.run_attempt }} | |
| needs: login-to-amazon-ecr | |
| container: | |
| image: 982423663241.dkr.ecr.us-west-2.amazonaws.com/holosoma:latest | |
| # volumes: | |
| # - "${{ }}/holosoma:/workspace/holosoma" | |
| # credentials: | |
| # username: ${{ needs.login-to-amazon-ecr.outputs.docker_username }} | |
| # password: ${{ needs.login-to-amazon-ecr.outputs.docker_password }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.branch || 'main' }} | |
| - name: Source Conda env | |
| shell: bash | |
| run: | | |
| pwd | |
| ls -la | |
| ls -la /__w/ | |
| source scripts/source_isaacgym_setup.sh | |
| # - name: Run precommit | |
| # uses: pre-commit/action@v3.0.1 | |
| - name: Type checking | |
| uses: python/mypy@v1.19.1 | |
| # run: | | |
| # pip install mypy | |
| # # uv tool install mypy | |
| # mypy . |