Skip to content

Workflow file for this run

name: Build πŸ› οΈ and test πŸ§ͺ ib-fundamental πŸ“ˆ in Python 🐍
on:
workflow_dispatch:
push:
branches: ["master", "dev"]
pull_request:
branches: ["master"]
env:
package: ib_fundamental
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Lint with pylint
run: |
pip install pylint
pylint -rn --rcfile=pyproject.toml ${{ env.package }}
continue-on-error: true
- name: Test with pytest
run: |
pip install pytest pytest-cov
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=com \ --cov-report=xml --cov-report=html