ci: Run example import script and example importers tests #574
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: | |
| - '3.8' | |
| - '3.9' | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| beancount: | |
| - '~=2.3.5' | |
| - '~=3.0.0' | |
| - '@git+https://github.com/beancount/beancount.git' | |
| exclude: | |
| # Beancount dev version requires Python 3.9+ | |
| - beancount: '@git+https://github.com/beancount/beancount.git' | |
| python: '3.8' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - run: pip install 'beancount ${{ matrix.beancount }}' | |
| - run: pip install -r requirements.txt pytest | |
| - run: python -m pytest beangulp | |
| examples: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| - '3.14' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - run: pip install . | |
| - run: | | |
| python examples/import.py examples/Documents >/dev/null | |
| - run: | | |
| python examples/importers/acme.py test examples/tests/acme | |
| python examples/importers/utrade.py test examples/tests/utrade |