Skip to content

Commit 5b19baa

Browse files
committed
Merge test workflows into single workflow
1 parent 362991f commit 5b19baa

File tree

4 files changed

+56
-88
lines changed

4 files changed

+56
-88
lines changed

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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}}

.github/workflows/docs.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/reversion.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)