diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a19d71c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +tests/files/* binary diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..440bc54 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +github: miguelgrinberg +patreon: miguelgrinberg +custom: https://paypal.me/miguelgrinberg diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..b0671ac --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,53 @@ +name: build +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - run: python -m pip install --upgrade pip wheel + - run: pip install tox tox-gh-actions + - run: tox -eflake8 + tests: + name: tests + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python: ['3.6', '3.7', '3.8', '3.9'] + fail-fast: false + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - run: python -m pip install --upgrade pip wheel + - run: pip install tox tox-gh-actions + - run: tox + tests-micropython: + name: tests-micropython + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - run: python -m pip install --upgrade pip wheel + - run: pip install tox tox-gh-actions + - run: tox -eupy + coverage: + name: coverage + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - run: python -m pip install --upgrade pip wheel + - run: pip install tox tox-gh-actions codecov + - run: tox + - run: codecov diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a3859da..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -dist: xenial -language: python -matrix: - include: - - python: 3.7 - env: TOXENV=flake8 - - python: 3.5 - env: TOXENV=py35 - - python: 3.6 - env: TOXENV=py36 - - python: 3.7 - env: TOXENV=py37 - - python: 3.8 - env: TOXENV=py38 - - python: 3.7 - env: TOXENV=upy -install: - - pip install tox -script: - - tox diff --git a/README.md b/README.md index ba499ce..577784f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # microdot -[![Build Status](https://travis-ci.org/miguelgrinberg/microdot.svg?branch=master)](https://travis-ci.org/miguelgrinberg/microdot) +[![Build status](https://github.com/miguelgrinberg/microdot/workflows/build/badge.svg)](https://github.com/miguelgrinberg/microdot/actions) [![codecov](https://codecov.io/gh/miguelgrinberg/microdot/branch/master/graph/badge.svg)](https://codecov.io/gh/miguelgrinberg/microdot) A minimalistic Python web framework for microcontrollers inspired by Flask ## Documentation -Coming soon! \ No newline at end of file +Coming soon! diff --git a/tox.ini b/tox.ini index d771450..26f27d5 100644 --- a/tox.ini +++ b/tox.ini @@ -3,21 +3,21 @@ envlist=flake8,py36,py37,py38,py39,upy skipsdist=True skip_missing_interpreters=True +[gh-actions] +python = + 3.6: py36 + 3.7: py37 + 3.8: py38 + 3.9: py39 + pypy3: pypy3 + [testenv] commands= pip install -e microdot pip install -e microdot-asyncio coverage run --branch --include="microdot*.py" -m unittest tests coverage report --show-missing - coverage erase deps=coverage -basepython= - flake8: python3.8 - py36: python3.6 - py37: python3.7 - py38: python3.8 - py39: python3.9 - upy: python3.8 [testenv:flake8] deps=