File tree Expand file tree Collapse file tree 4 files changed +56
-88
lines changed Expand file tree Collapse file tree 4 files changed +56
-88
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+
7
+ docs :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v1
11
+ - name : Set up Python
12
+ uses : actions/setup-python@v1
13
+ - name : Install binary dependencies
14
+ run : sudo apt-get install -y python3-enchant graphviz
15
+ - name : Install Python dependencies
16
+ run : |
17
+ python -m pip install --upgrade pip setuptools
18
+ pip install sphinxcontrib-spelling
19
+ python setup.py develop
20
+ - name : Build documentation
21
+ run : python setup.py build_sphinx -W -b spelling
22
+
23
+ tests :
24
+ runs-on : ubuntu-latest
25
+ strategy :
26
+ matrix :
27
+ python-version :
28
+ - 3.6
29
+ - 3.7
30
+ - 3.8
31
+ django-version :
32
+ - 2.2.*
33
+ - 3.0.*
34
+ extras :
35
+ - test
36
+ - test,reversion
37
+ steps :
38
+ - uses : actions/checkout@v1
39
+ - name : Set up Python ${{ matrix.python-version }}
40
+ uses : actions/setup-python@v1
41
+ with :
42
+ python-version : ${{ matrix.python-version }}
43
+ - name : Install binary dependencies
44
+ run : |
45
+ sudo apt-get update
46
+ sudo apt-get install -y graphviz redis-server
47
+ - name : Install Python dependencies
48
+ run : |
49
+ python -m pip install --upgrade pip setuptools wheel codecov
50
+ python -m pip install -e .[${{ matrix.extras }}]
51
+ python -m pip install django==${{ matrix.django-version }}
52
+ - name : Run tests
53
+ run : PATH=$PATH:$(pwd)/bin py.test
54
+ - run : codecov
55
+ env :
56
+ CODECOV_TOKEN : ${{secrets.CODECOV_TOKEN}}
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments