File tree Expand file tree Collapse file tree 2 files changed +39
-22
lines changed Expand file tree Collapse file tree 2 files changed +39
-22
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on : [push, pull_request]
3
+ jobs :
4
+ test :
5
+ runs-on : ubuntu-latest
6
+ services :
7
+ postgres :
8
+ image : postgres:10.1
9
+ ports :
10
+ - 5432:5432
11
+ steps :
12
+ - name : Check out repository
13
+ uses : actions/checkout@v2
14
+ - uses : actions/setup-python@v2
15
+ with :
16
+ python-version : 3.9.6
17
+ - name : Cache Python dependencies
18
+ uses : actions/cache@v2
19
+ env :
20
+ cache-name : pythondotorg-cache-pip
21
+ with :
22
+ path : ~/.cache/pip
23
+ key : ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('requirements.txt', '*-requirements.txt') }}
24
+ restore-keys : |
25
+ ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
26
+ ${{ runner.os }}-${{ github.job }}-
27
+ ${{ runner.os }}-
28
+ - name : Install Python dependencies
29
+ run : |
30
+ pip install -U pip setuptools wheel
31
+ pip install -r dev-requirements.txt
32
+ - name : Run Tests
33
+ run : |
34
+ python -Wd -m coverage run manage.py test -v2
35
+ env :
36
+ DATABASE_URL : postgres://postgres:@127.0.0.1:5432/python.org
37
+ - name : Coverage
38
+ run : |
39
+ coverage report -m --fail-under=75
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments