From bd1def28b65534038b44b4a3f86e4a6b37308b7f Mon Sep 17 00:00:00 2001 From: Dominic Tarro Date: Thu, 20 Jun 2024 22:31:36 -0400 Subject: [PATCH] Fix AWS credentials configuration in pytest workflow --- .github/workflows/pytest.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0be5b10..0b657cb 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,14 +1,12 @@ -# .github/workflows/app.yaml name: PyTest on: - workflow_dispatch: pull_request: paths: - "tests/**" - "src/**" - "Pipfile" - "Pipfile.lock" - - ".github/workflows/pytest.yml" + - .github/workflows/pytest.yml jobs: test: @@ -31,11 +29,18 @@ jobs: run: | python -m pip install --upgrade pipenv wheel + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + - name: Install dependencies if: steps.setup-python.outputs.cache-hit != 'true' run: | - pipenv sync --dev + pipenv install --deploy --dev - name: Run test suite run: | - pipenv run tests -v + pipenv run test -v