diff --git a/.github/workflows/aws-sam-cicd.yml b/.github/workflows/aws-sam-cicd.yml index e858cc5..5d510b4 100644 --- a/.github/workflows/aws-sam-cicd.yml +++ b/.github/workflows/aws-sam-cicd.yml @@ -18,8 +18,6 @@ jobs: run: python -m pip install --upgrade pip - name: Freeze dependencies run: pip freeze > requirements.txt - - name: Install dependencies - run: pip install -r requirements.txt - name: Commit and push changes run: | git config --global user.name KarmaPol @@ -29,8 +27,10 @@ jobs: git push env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Run tests with pytest - run: pytest + - name: Install dependencies, run pytest + run: | + pip install -r requirements.txt + pytest cd: needs: ci