Skip to content

Commit 2fdf574

Browse files
committed
ci: Move examples test to more obvious location
And run them with all supported Python versions.
1 parent 35d96ce commit 2fdf574

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

.github/workflows/install.yaml

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

.github/workflows/test.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,42 @@ jobs:
3030
- run: pip install 'beancount ${{ matrix.beancount }}'
3131
- run: pip install -r requirements.txt pytest
3232
- run: python -m pytest beangulp
33+
34+
examples:
35+
runs-on: ubuntu-latest
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
python:
40+
- '3.10'
41+
- '3.11'
42+
- '3.12'
43+
- '3.13'
44+
- '3.14'
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: actions/setup-python@v5
48+
with:
49+
python-version: ${{ matrix.python }}
50+
- run: sudo apt-get install poppler-utils
51+
- run: pip install .
52+
- name: Run smoke test
53+
run: |
54+
cd examples
55+
python import.py --help
56+
- name: Run example importers unit tests
57+
run: |
58+
cd examples
59+
python -m unittest
60+
- name: Run example importers tests
61+
run: |
62+
cd examples
63+
python importers/acme.py test tests/acme --verbose
64+
python importers/csvbank.py test tests/csvbank --verbose
65+
python importers/utrade.py test tests/utrade --verbose
66+
- name: Run example ledger.import
67+
run: |
68+
cd examples
69+
python import.py identify Downloads -v
70+
python import.py extract Downloads
71+
python import.py archive Downloads -n -o documents

0 commit comments

Comments
 (0)