Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
added caching mechanism for requirements install
  • Loading branch information
kiryteo authored Jul 14, 2024
1 parent debe0c9 commit 4438000
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
python-version: [3.9]
python-version: [3.8, 3.9, 3.10]

steps:
- name: Checkout code
Expand All @@ -23,6 +23,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip
uses: actions/cache@v2
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
Expand All @@ -37,3 +45,5 @@ jobs:
run: |
pip install pytest
pytest
pytest

0 comments on commit 4438000

Please sign in to comment.