Skip to content

Commit 9e07ea4

Browse files
committed
Add minimal github CI tests, remove appveyor test
1 parent ed902ce commit 9e07ea4

File tree

3 files changed

+24
-31
lines changed

3 files changed

+24
-31
lines changed

.appveyor.yml

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

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test-new:
6+
7+
steps:
8+
- name: Checkout code
9+
uses: actions/checkout@v2
10+
11+
- uses: actions/setup-python@v1
12+
with:
13+
python-version: '3.x'
14+
15+
- name: Install requirements (PIP)
16+
run: pip3 install pytest sphinx
17+
18+
- name: Run test pytest
19+
run: python3 -m pytest
20+
21+
- name: Run doctest
22+
run: cd docs; make doctest

test/test_dictbuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_dictbuilder():
1717
print("** Python structure without data flattening:\n")
1818
print(pyrep)
1919
print("\n** Turning back to HSD:\n")
20-
print(hsd.dumps(pyrep))
20+
print(hsd.dump_string(pyrep))
2121

2222

2323
def test_dictbuilder_flat():
@@ -29,7 +29,7 @@ def test_dictbuilder_flat():
2929
print("** Python structure with data flattening:\n")
3030
print(pyrep)
3131
print("\n** Turning back to HSD:\n")
32-
print(hsd.dumps(pyrep))
32+
print(hsd.dump_string(pyrep))
3333

3434

3535
if __name__ == '__main__':

0 commit comments

Comments
 (0)