Skip to content

Fix CI: update Python versions and test runner for modern GitHub Actions#11

Merged
vroonhof merged 2 commits intomasterfrom
copilot/fix-github-action-python-version
Mar 5, 2026
Merged

Fix CI: update Python versions and test runner for modern GitHub Actions#11
vroonhof merged 2 commits intomasterfrom
copilot/fix-github-action-python-version

Conversation

Copy link

Copilot AI commented Mar 5, 2026

Python 3.7 and 3.8 are no longer available in GitHub Actions runners (Ubuntu 24.04), causing all CI jobs to fail at the setup-python step. Additionally, nose is unmaintained and incompatible with Python 3.12+.

Workflow & tooling

  • Python matrix: [3.7, 3.8]["3.11", "3.12"]
  • actions/checkout@v2v4, actions/setup-python@v2v5
  • Test runner: nosetestspytest --cov=ibflex
  • requirements-development.txt: replace nose + coverage with pytest + pytest-cov
  • setup.cfg: replace [nosetests] config block with [tool:pytest]

Pre-existing mypy errors (would have failed the mypy CI step)

  • ibflex/Types.py: removed duplicate field currency in EquitySummaryByReportDateInBase and 10 duplicate fields in SymbolSummary (e.g. ibExecID, openDateTime, tradePrice, etc.)
  • ibflex/parser.py: corrected parse_element return type to Optional[Union[FlexElement, Tuple[FlexElement, ...]]]; used cast() to narrow tuple type after None-filtering; added assert known is not None before use inside tolerance branch

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: vroonhof <38109466+vroonhof@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix GitHub action failure due to Python version Fix CI: update Python versions and test runner for modern GitHub Actions Mar 5, 2026
@vroonhof vroonhof marked this pull request as ready for review March 5, 2026 00:13
@vroonhof vroonhof merged commit 76259a5 into master Mar 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants