Skip to content

Commit

Permalink
ci: add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucs1590 committed Apr 11, 2024
1 parent ef432d7 commit 83a91a6
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 83a91a6

Please sign in to comment.