Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: (CI)
2
3 on:
4 push:
5 branches:
6 - ci
7
8 jobs:
9 build:
10 name: Python ${{ matrix.python-version }}, django ${{ matrix.django-version }}
11 runs-on: ubuntu-latest
12 strategy:
13 matrix:
14 python-version: [3.6, 3.7, 3.8, 3.9, "3.10", pypy3]
15 django-version: [2.2, 3.0, 3.1, 3.2, 4.0]
16 exclude:
17 # excludes list
18 - python-version: 3.6
19 django-version: 4.0
20 - python-version: 3.7
21 django-version: 4.0
22 - python-version: pypy3
23 django-version: 4.0
24
25 steps:
26 - uses: actions/checkout@v2
27 - name: setup python
28 uses: actions/setup-python@v2
29 with:
30 python-version: ${{ matrix.python-version }}
31 - name: Install dependencies
32 run: |
33 python -m pip install --upgrade pip
34 pip install -e .
35 pip install coveralls
36 pip install "django~=${{ matrix.django-version }}.0"
37 - name: Run flake8
38 run: |
39 pip install flake8
40 flake8 --exclude=migrations,tests --ignore=E501,E241,E225,E128 .
41 - name: Run pycodestyle
42 run: |
43 pip install pycodestyle
44 pycodestyle --exclude=migrations,tests --ignore=E501,E241,E225,E128 .
45 - name: Run test
46 run: |
47 coverage run --source=ipware manage.py test
48 - name: Coveralls
49 run: coveralls --service=github
50 env:
51 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}