Skip to content

Commit ca3ed6a

Browse files
committed
Actions: Use cache
1 parent 67eb9c5 commit ca3ed6a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: .github/workflows/tests.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,29 @@ jobs:
1515
run: |
1616
sudo systemctl start mysql.service
1717
mysql -uroot -proot -e "CREATE DATABASE mysqldb_test"
18+
19+
- uses: actions/cache@v2
20+
with:
21+
path: ~/.cache/pip
22+
key: ${{ runner.os }}-pip-1
23+
restore-keys: |
24+
${{ runner.os }}-pip-
25+
1826
- uses: actions/checkout@v2
1927
with:
2028
fetch-depth: 2
29+
2130
- name: Set up Python ${{ matrix.python-version }}
2231
uses: actions/setup-python@v2
2332
with:
2433
python-version: ${{ matrix.python-version }}
34+
2535
- name: Run tests
2636
env:
2737
TESTDB: actions.cnf
2838
run: |
2939
pip install -U coverage pytest pytest-cov
3040
pip install .
3141
pytest --cov=MySQLdb tests
42+
3243
- uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)