diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 0000000..c8ebac3 --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,24 @@ +name: Testing + +on: [pull_request, push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + max-parallel: 3 + matrix: + python-version: [3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox tox-gh-actions + - name: Test with tox + run: tox \ No newline at end of file diff --git a/tox.ini b/tox.ini index 28fb3c7..99cabae 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,11 @@ [tox] -isolated_build = true -envlist = py36,py37,py38,mypy,pylint +envlist = py37,py38,py39,mypy,pylint + +[gh-actions] +python = + 3.7: py37 + 3.8: py38 + 3.9: py39, mypy, pylint [testenv] whitelist_externals = poetry @@ -9,13 +14,13 @@ commands = poetry run pytest [testenv:mypy] -basepython = python3.8 +basepython = python3.9 commands = poetry install -v poetry run mypy . [testenv:pylint] -basepython = python3.8 +basepython = python3.9 commands = poetry install -v poetry run pylint -E bpytop