diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml deleted file mode 100644 index d94181b..0000000 --- a/.github/actions/setup/action.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: Set up the project -description: Install uv, Python, and the project dependencies -runs: - using: "composite" - steps: - - uses: astral-sh/setup-uv@v3 - with: - enable-cache: true - version: "0.4.10" - - - run: uv python install 3.10 - shell: bash - - - run: uv sync --locked - shell: bash diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1eec041..2034c9a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,14 +13,13 @@ permissions: jobs: deploy: runs-on: ubuntu-latest - name: Deploy + name: Deploy to AWS environment: deploy-to-aws steps: - uses: actions/checkout@v4 - - uses: ./.github/actions/setup - uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ vars.AWS_DEPLOYMENT_NAME }} + role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ vars.AWS_DEPLOYMENT_ROLE }} aws-region: ${{ vars.AWS_REGION }} - uses: aws-actions/amazon-ecr-login@v2 id: log-into-ecr diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9011d33..fe74d62 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: ./.github/actions/setup + - uses: astral-sh/setup-uv@v3 + with: + enable-cache: true + version: "0.4.10" + - run: uv python install 3.10 + - run: uv sync --locked - run: uv run ruff format --check - run: uv run ruff check - run: uv run mypy