Skip to content

Commit 07b113b

Browse files
authored
Merge pull request #968 from asottile/github_actions
use github actions instead of travis-ci
2 parents a35d409 + a6e25e1 commit 07b113b

File tree

3 files changed

+64
-42
lines changed

3 files changed

+64
-42
lines changed

.github/workflows/main.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: main
2+
on:
3+
pull_request:
4+
push:
5+
branches: [master, 'test-me-*']
6+
tags: ['*']
7+
8+
jobs:
9+
main:
10+
strategy:
11+
matrix:
12+
include:
13+
- os: windows-latest
14+
py: 2.7
15+
toxenv: py
16+
- os: windows-latest
17+
py: 3.9
18+
toxenv: py
19+
- os: ubuntu-latest
20+
py: pypy2
21+
toxenv: py
22+
- os: ubuntu-latest
23+
py: pypy3
24+
toxenv: py
25+
- os: ubuntu-latest
26+
py: 2.7
27+
toxenv: py
28+
- os: ubuntu-latest
29+
py: 3.4
30+
toxenv: py
31+
- os: ubuntu-latest
32+
py: 3.5
33+
toxenv: py
34+
- os: ubuntu-latest
35+
py: 3.6
36+
toxenv: py
37+
- os: ubuntu-latest
38+
py: 3.7
39+
toxenv: py
40+
- os: ubuntu-latest
41+
py: 3.8
42+
toxenv: py
43+
- os: ubuntu-latest
44+
py: 3.9
45+
toxenv: py
46+
- os: ubuntu-latest
47+
py: 3.9
48+
toxenv: flake8
49+
runs-on: ${{ matrix.os }}
50+
steps:
51+
- uses: actions/checkout@v2
52+
- uses: actions/setup-python@v2
53+
with:
54+
python-version: ${{ matrix.py }}
55+
- run: pip install tox
56+
- run: tox -e ${{ matrix.toxenv }}

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

testsuite/test_util.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@
88

99
class UtilTestCase(unittest.TestCase):
1010
def test_normalize_paths(self):
11-
cwd = os.getcwd()
12-
1311
self.assertEqual(normalize_paths(''), [])
1412
self.assertEqual(normalize_paths([]), [])
1513
self.assertEqual(normalize_paths(None), [])
1614
self.assertEqual(normalize_paths(['foo']), ['foo'])
1715
self.assertEqual(normalize_paths('foo'), ['foo'])
1816
self.assertEqual(normalize_paths('foo,bar'), ['foo', 'bar'])
1917
self.assertEqual(normalize_paths('foo, bar '), ['foo', 'bar'])
20-
self.assertEqual(normalize_paths('/foo/bar,baz/../bat'),
21-
[os.path.realpath('/foo/bar'), cwd + '/bat'])
22-
self.assertEqual(normalize_paths(".pyc,\n build/*"),
23-
['.pyc', cwd + '/build/*'])
18+
self.assertEqual(
19+
normalize_paths('/foo/bar,baz/../bat'),
20+
[os.path.realpath('/foo/bar'), os.path.abspath('bat')],
21+
)
22+
self.assertEqual(
23+
normalize_paths(".pyc,\n build/*"),
24+
['.pyc', os.path.abspath('build/*')],
25+
)

0 commit comments

Comments
 (0)