diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 28a010b..dd87768 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -10,20 +10,32 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.10] + steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} + + - name: Cache Python dependencies + uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install coverage codecov unittest-xml-reporting + pip install coverage codecov - name: Run tests and generate coverage report run: |