Skip to content

Commit abef4ee

Browse files
committed
Use github actions
1 parent 84be336 commit abef4ee

File tree

3 files changed

+42
-293
lines changed

3 files changed

+42
-293
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.

0 commit comments

Comments
 (0)