File tree 3 files changed +58
-1
lines changed
3 files changed +58
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ python-version : ["3.7", "3.8"]
11
+ django-version : ["1.11", "2.2", "3.0"]
12
+
13
+ steps :
14
+ - uses : actions/checkout@v1
15
+ - name : Set up Python ${{ matrix.python-version }}
16
+ uses : actions/setup-python@v1
17
+ with :
18
+ python-version : ${{ matrix.python-version }}
19
+ - uses : actions/cache@v1
20
+ with :
21
+ path : ~/.cache/pip
22
+ key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
23
+ - name : Install dependencies
24
+ run : |
25
+ python -m pip install --upgrade pip
26
+ pip install -r requirements.txt
27
+ pip install django~=${{ matrix.django-version }}
28
+ - name : Lint
29
+ run : scripts/check
30
+ - name : Run tests
31
+ run : scripts/test
Original file line number Diff line number Diff line change
1
+ name : Upload Python Package
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ deploy :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v1
12
+ - name : Set up Python
13
+ uses : actions/setup-python@v1
14
+ with :
15
+ python-version : ' 3.8'
16
+ - name : Install dependencies
17
+ run : |
18
+ python -m pip install --upgrade pip
19
+ pip install setuptools wheel twine
20
+ - name : Build and publish
21
+ env :
22
+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
23
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
24
+ run : |
25
+ python setup.py sdist bdist_wheel
26
+ twine upload dist/*
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Then, in your main page template:
42
42
43
43
That's it!
44
44
45
- Tested with all currently supported Django and Python versions.
45
+ Tested on Python 3 with all currently supported Django versions.
46
46
47
47
## Installation
48
48
You can’t perform that action at this time.
0 commit comments