Skip to content

Commit 648b797

Browse files
authored
Merge pull request #112 from iMichka/pythons
Update pipelines
2 parents 84be336 + 74eafdd commit 648b797

File tree

4 files changed

+45
-296
lines changed

4 files changed

+45
-296
lines changed

.github/workflows/tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
on: pull_request
2+
jobs:
3+
test:
4+
runs-on: ubuntu-18.04
5+
strategy:
6+
matrix:
7+
python-version: [3.5, 3.6, 3.7, 3.8]
8+
env:
9+
XML_GENERATOR: castxml
10+
CPPSTD: -std=c++98
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
# You can test your matrix by printing the current Python version
18+
- name: Display Python version
19+
run: python -c "import sys; print(sys.version)"
20+
- name: Setup castxml
21+
run: |
22+
wget -q -O - https://data.kitware.com/api/v1/file/hashsum/sha512/f43ef30267c850872cf1e8ea8594c5dc6a1beb7c343d63875662ee7c648dac4f9214c915499ef2e1148f2b5f866e4c518ca1a21fb5055baba7d62f4f69097ba0/download | tar zxf - -C ~/
23+
- name: Setup Python test libs
24+
run: |
25+
pip install coveralls
26+
pip install coverage
27+
pip install pycodestyle
28+
- name: Run tests
29+
run: |
30+
export PATH=~/castxml/bin:$PATH
31+
python setup.py install
32+
coverage run -m unittests.test_all
33+
coverage combine
34+
- name: Upload coverage to Codecov
35+
uses: codecov/codecov-action@v1
36+
with:
37+
token: ${{ secrets.CODECOV_TOKEN }}
38+
file: .coverage
39+
flags: unittests
40+
env_vars: OS,PYTHON
41+
name: codecov-umbrella
42+
fail_ci_if_error: true

.travis.yml

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

appveyor.yml

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

unittests/filters_tester.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def test_access_type(self):
4949
if nbr == 21:
5050
# We are using llvm 3.9, see bug #32. Make sure the 4 names
5151
# are still there
52-
ll = ["isa", "flags", "str", "length"]
53-
for l in ll:
54-
self.assertTrue(l in [mbr.name for mbr in public_members])
52+
names = ["isa", "flags", "str", "length"]
53+
for name in names:
54+
self.assertTrue(names in [mbr.name for mbr in public_members])
5555
else:
5656
self.assertTrue(17 == len(public_members))
5757

0 commit comments

Comments
 (0)