Skip to content

Commit 152bbf0

Browse files
committed
GitHub Action to run tox
1 parent 02c3bca commit 152bbf0

File tree

5 files changed

+60
-54
lines changed

5 files changed

+60
-54
lines changed

.github/workflows/empty

Whitespace-only changes.

.github/workflows/tox.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: tox
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
tox:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
python-version: [
11+
"2.7",
12+
"3.5",
13+
"3.6",
14+
"3.7",
15+
"3.8",
16+
"3.9",
17+
"3.10",
18+
"3.11",
19+
"3.12",
20+
"3.13-dev",
21+
"pypy-2.7",
22+
"pypy-3.10",
23+
]
24+
os: [ubuntu-latest, windows-latest, macos-latest]
25+
exclude:
26+
- python-version: "2.7"
27+
os: "ubuntu-latest"
28+
- python-version: "2.7"
29+
os: "windows-latest"
30+
- python-version: "2.7"
31+
os: "macos-latest"
32+
- python-version: "3.5"
33+
os: "ubuntu-latest"
34+
- python-version: "3.6"
35+
os: "ubuntu-latest"
36+
include:
37+
- python-version: "2.7"
38+
os: "ubuntu-20.04"
39+
- python-version: "3.5"
40+
os: "ubuntu-20.04"
41+
- python-version: "3.6"
42+
os: "ubuntu-20.04"
43+
runs-on: ${{ matrix.os }}
44+
steps:
45+
- uses: actions/checkout@v4
46+
- if: ${{ matrix.python-version == '2.7' }}
47+
run: |
48+
sudo apt-get install python-is-python2
49+
curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
50+
python get-pip.py
51+
name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
52+
- if: ${{ matrix.python-version != '2.7' }}
53+
name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
54+
uses: actions/setup-python@v5
55+
with:
56+
python-version: ${{ matrix.python-version }}
57+
- run: python -m pip install --disable-pip-version-check --upgrade tox
58+
- run: python -m tox -e py

.travis.yml

-53
This file was deleted.

test_six.py

+1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def test_map():
231231
assert six.advance_iterator(map(lambda x: x + 1, range(2))) == 1
232232

233233

234+
@pytest.mark.skipif("sys.platform == 'win32'", reason="TODO: fix on Windows")
234235
def test_getoutput():
235236
from six.moves import getoutput
236237
output = getoutput('echo "foo"')

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=py27,py33,py34,py35,py36,py37,py38,pypy,flake8
2+
envlist=py27,py35,py36,py37,py38,py39,py310,py311,py312,py313,pypy,pypy3,flake8
33

44
[testenv]
55
deps= pytest

0 commit comments

Comments
 (0)