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