Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run flake8
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
flake8-lint:
name: flake8
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
architecture: "x64"

- name: Install flake8
run: pip install flake8

- name: run flake8
run: flake8 . --max-line-length 120 --statistics --count --exclude ".tox,.venv,.env,.git,__pycache__,docs,old,build,dist"
34 changes: 34 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run tox
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main

jobs:
tox-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- name: Check out source code
uses: actions/checkout@v2

- name: Set up Python version ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install --upgrade pip wheel setuptools
pip install --upgrade tox tox-py

- name: Run tox targets for ${{ matrix.python-version }}
run: tox --py current
10 changes: 1 addition & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[tox]
envlist =
py{37,38,39}-dj{22,30,31,32}-celery{40,41,42,43,44,50,51},
flake8
py{37,38,39}-dj{22,30,31,32}-celery{40,41,42,43,44,50,51}
skip_missing_interpreters = true

[testenv]
Expand All @@ -18,10 +17,3 @@ deps =
celery44: celery>=4.4,<4.5
celery50: celery>=5.0,<5.0.6
celery51: celery>=5.1,<5.2

[testenv:flake8]
deps = flake8
commands = flake8 djcelery_email tests

[flake8]
max-line-length = 120