Debian Codegraph @

.github/workflows/dev.yml

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