fixed tox issues:

* removed pypy env as it just duplicats the default testenv
* added github action
This commit is contained in:
Bastian Venthur 2021-06-23 10:34:03 +02:00
parent 42e96b13dd
commit 2882327c84
2 changed files with 26 additions and 8 deletions

25
.github/workflows/python-package.yaml vendored Normal file
View File

@ -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

View File

@ -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