Skip to content

Commit aad18c2

Browse files
authored
Use caching and bump requirements (#206)
1 parent 27c5d3d commit aad18c2

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ jobs:
2626
with:
2727
python-version: "${{ matrix.python-version }}"
2828

29+
- name: "Get pip cache dir"
30+
id: pip-cache
31+
run: |
32+
echo "::set-output name=dir::$(pip cache dir)"
33+
34+
- name: "Cache"
35+
uses: actions/cache@v3
36+
with:
37+
path: ${{ steps.pip-cache.outputs.dir }}
38+
key:
39+
${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/tox.ini') }}
40+
restore-keys: |
41+
${{ matrix.python-version }}-v1-
42+
2943
- name: "Install dependencies"
3044
run: |
3145
set -xe
@@ -41,8 +55,8 @@ jobs:
4155
if: "contains(env.USING_COVERAGE, matrix.python-version)"
4256
uses: "codecov/codecov-action@v3"
4357
with:
58+
name: Python ${{ matrix.python-version }}
4459
token: ${{ secrets.CODECOV_TOKEN }}
4560
file: ./coverage.xml
4661
files: ./coverage1.xml,./coverage2.xml
47-
name: codecov-umbrella
4862
fail_ci_if_error: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
![Build Status](https://github.com/101loop/drf-user/workflows/CI/badge.svg)
2+
[![codecov](https://codecov.io/gh/101Loop/drf-user/branch/master/graph/badge.svg)](https://codecov.io/gh/101Loop/drf-user)
23
[![Downloads](https://static.pepy.tech/personalized-badge/drf-user?period=total&units=international_system&left_color=black&right_color=blue&left_text=Total%20Downloads)](https://pepy.tech/project/drf-user)
34
[![Downloads](https://static.pepy.tech/personalized-badge/drf-user?period=month&units=international_system&left_color=black&right_color=blue&left_text=Downloads/Month)](https://pepy.tech/project/drf-user)
45
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Django>=1.11
1+
Django>=3.2
22
django-filter==21.1
3-
djangorestframework>=3.8.0
4-
djangorestframework-simplejwt>=4.4.0
3+
djangorestframework>=3.12
4+
djangorestframework-simplejwt>=5.0.0
55
drfaddons>=0.1.0
6-
Pillow>=7.2.0
6+
Pillow>=8.0.0

0 commit comments

Comments
 (0)