From 2882327c8422d099f1601facac2f555f20fb824d Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Wed, 23 Jun 2021 10:34:03 +0200 Subject: [PATCH] fixed tox issues: * removed pypy env as it just duplicats the default testenv * added github action --- .github/workflows/python-package.yaml | 25 +++++++++++++++++++++++++ tox.ini | 9 +-------- 2 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/python-package.yaml diff --git a/.github/workflows/python-package.yaml b/.github/workflows/python-package.yaml new file mode 100644 index 0000000..68555fa --- /dev/null +++ b/.github/workflows/python-package.yaml @@ -0,0 +1,25 @@ +name: Python package + +on: + - push + - pull_request + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python: [2.7, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install Tox and any other packages + run: pip install tox + - name: Run Tox + # Run tox using the version of Python in `PATH` + run: tox -e py diff --git a/tox.ini b/tox.ini index 8a63b5b..3465418 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,5 @@ [tox] +envlist=py24,py25,py26,py27,py31,py32,py33,py34,py35,py36,py37,py38,py39,pypy skipsdist=true [testenv] @@ -15,11 +16,3 @@ deps=flake8 commands = {envpython} -V flake8 speedtest.py - -[testenv:pypy] -commands = - pypy -V - pypy -m compileall speedtest.py - pypy speedtest.py - pypy speedtest.py --source 172.17.0.1 - pypy tests/scripts/source.py