diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..04fef77 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..cb08fb3 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,50 @@ +name: Tests + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: ["3.11"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install Dependencies + run: | + python -m pip install --upgrade pip wheel + pip install -r requirements-test.txt -e . + - name: Run Tests + run: | + pwd + ls -al + ls -al tests + echo "coverage run --source=django12factor -m nose.core -w ${{ github.workspace }}/tests" + coverage run -m nose.core -w ${{ github.workspace }}/tests + coverage report -m + coverage lcov + - name: Run Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: coverage.lcov + - name: Run Flake8 + run: + flake8 --max-line-length=120 django12factor tests setup.py + - name: Run pep257 + run: + pep257 --ignore D200,D202,D203 django12factor + - name: Run mypy + run: + mypy --ignore-missing-imports --follow-imports=skip --disallow-untyped-calls --disallow-untyped-defs -p django12factor diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d94b08e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: python -python: - - "2.7" - - "3.4" - - "3.5" - - "3.6" - - "3.7" -sudo: required -dist: xenial -install: - - pip install tox -script: - - if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then tox -e coverage,coverage-report,flake8,doc8,pep257; fi - - if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then tox -e coverage,coverage-report,flake8,doc8,pep257,mypy; fi -matrix: - fast_finish: true -notifications: - email: false - irc: - channels: - - "chat.freenode.net#django12factor" - skip_join: true - use_notice: true diff --git a/requirements-test.txt b/requirements-test.txt index 69290bb..104d51a 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,6 +1,6 @@ -doc8==0.8.0 -coverage==4.5.2 -flake8==3.6.0 +doc8==1.1.1 +coverage==7.2.5 +flake8==6.0.0 nose==1.3.7 pep257==0.7.0 -pygments==2.3.1 +pygments==2.15.1 diff --git a/setup.py b/setup.py index 2728657..2a38443 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ import os from setuptools import setup, find_packages -__version__ = '1.3' +__version__ = '1.4' HERE = os.path.dirname(__file__) diff --git a/tox.ini b/tox.ini deleted file mode 100644 index b3c06a1..0000000 --- a/tox.ini +++ /dev/null @@ -1,41 +0,0 @@ -[tox] -envlist = - coverage, - coverage-report, - flake8, - doc8, - pep257 - - -[testenv] -envdir = {toxinidir}/.toxenv -deps = - -rrequirements-test.txt -commands = - coverage: coverage run {envdir}/bin/nosetests - coverage-report: coverage report - flake8: flake8 django12factor tests setup.py - doc8: doc8 README.rst - pep257: pep257 --ignore D200,D202,D203 django12factor - - -[testenv:mypy] -envdir = {toxinidir}/.toxenv -deps = - mypy - typing -setenv= - MYPYPATH=. -commands = - mypy: mypy --ignore-missing-imports --follow-imports=skip --disallow-untyped-calls --disallow-untyped-defs -p django12factor - - -[testenv:sphinx] -deps = - Sphinx -changedir = {toxinidir}/docs/ -whitelist_externals = - make -commands = - make html - make doctest coverage