diff --git a/.github/workflows/build-pipeline.yml b/.github/workflows/build-pipeline.yml new file mode 100644 index 000000000..5cb9a225e --- /dev/null +++ b/.github/workflows/build-pipeline.yml @@ -0,0 +1,38 @@ +# GitHub CI build pipeline +name: Cookiecutter PyPackage CI build + +on: + push: + branches: + - master + - main + pull_request: + branches: + - master + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up python + uses: actions/setup-python@v3 + with: + python-version: "3.x" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install coverage + if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; else pip install . fi + - name: Run Tests + run: | + pytest tests/ + - name: Run package creation + run: | + python -m pip install --user --upgrade build + python -m build + - name: Archive package + uses: actions/upload-artifact@v2 + with: + name: cookie-cutter + path: src/dist diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 15777bdbb..000000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Config file for automatic testing at travis-ci.org - -language: python -python: - - 3.8 - - 3.7 - - 3.6 - -# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors -install: pip install -U tox-travis - -# command to run tests, e.g. python setup.py test -script: tox - -# deploy new versions to PyPI -deploy: - provider: pypi - distributions: sdist bdist_wheel - user: audreyr - password: - secure: PLEASE_REPLACE_ME - on: - tags: true - repo: audreyr/python_boilerplate - python: 3.8 diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 9e3d5f7e5..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,51 +0,0 @@ -# What Python version is installed where: -# http://www.appveyor.com/docs/installed-software#python - -environment: - matrix: - - PYTHON: "C:\\Python35" - TOX_ENV: "py35" - - - PYTHON: "C:\\Python35-x64" - TOX_ENV: "py35" - - - PYTHON: "C:\\Python36" - TOX_ENV: "py36" - - - PYTHON: "C:\\Python36-x64" - TOX_ENV: "py36" - - - PYTHON: "C:\\Python37" - TOX_ENV: "py37" - - - PYTHON: "C:\\Python37-x64" - TOX_ENV: "py37" - - - PYTHON: "C:\\Python38" - TOX_ENV: "py38" - - - PYTHON: "C:\\Python38-x64" - TOX_ENV: "py38" - -init: - - set PATH=%PYTHON%;%PYTHON%\Scripts;C:\MinGW\msys\1.0\bin;%PATH% - - "git config --system http.sslcainfo \"C:\\Program Files\\Git\\mingw64\\ssl\\certs\\ca-bundle.crt\"" - - "%PYTHON%/python -V" - - "%PYTHON%/python -c \"import struct;print(8 * struct.calcsize(\'P\'))\"" - -install: - - "%PYTHON%/Scripts/easy_install -U pip" - - "%PYTHON%/Scripts/pip install -U tox virtualenv" - - "%PYTHON%/Scripts/pip install wheel" - -build: false # Not a C# project, build stuff at the test step instead. - -test_script: - - "%PYTHON%/Scripts/tox -e %TOX_ENV%" - -after_test: - - "%PYTHON%/python setup.py --command-packages wheel bdist_wheel" - - ps: "ls dist" - -artifacts: - - path: dist\* diff --git a/tox.ini b/tox.ini deleted file mode 100644 index b2949261b..000000000 --- a/tox.ini +++ /dev/null @@ -1,25 +0,0 @@ -[tox] -envlist = py36, py37,py38 pypy, docs -skipsdist = true - -[travis] -python = - 3.8: py38 - 3.7: py37 - 3.6: py36 - -[testenv:docs] -basepython=python -changedir=docs -deps=sphinx -commands= - sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html - -[testenv] -setenv = - PYTHONPATH = {toxinidir} -deps = - -r{toxinidir}/requirements_dev.txt -commands = - python -m pip install --upgrade pip - pytest