fixed tox issues:
* removed pypy env as it just duplicats the default testenv * added github action
This commit is contained in:
parent
42e96b13dd
commit
2882327c84
|
@ -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
|
9
tox.ini
9
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
|
||||
|
|
Loading…
Reference in New Issue