diff --git a/.github/workflows/devops.yml b/.github/workflows/devops.yml index ed9abe5..b6c1ca1 100644 --- a/.github/workflows/devops.yml +++ b/.github/workflows/devops.yml @@ -1,5 +1,5 @@ name: CI/CD -on: [push] +on: [push, pull_request] jobs: build: runs-on: ubuntu-latest @@ -12,6 +12,13 @@ jobs: uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: | make install