Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
python-version: "3.10"

- name: Install Poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8.2
poetry-version: "latest"

- name: Install dependencies
run: |
python -m poetry install --extras "pandas munch tenacity"
poetry install --extras "pandas munch tenacity"

- name: Integration test with pytest
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: "3.10"
- name: Install Poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8.2
poetry-version: "latest"
- name: Build and publish
env:
PYPI_USERNAME: __token__
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11" ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]

steps:

Expand All @@ -25,13 +25,13 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: abatilo/actions-poetry@v2
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8.2
poetry-version: "latest"

- name: Install dependencies
run: |
python -m poetry install --extras "pandas munch tenacity"
poetry install --extras "pandas munch tenacity"

- name: Prettify with black
uses: psf/black@stable
Expand All @@ -40,8 +40,8 @@ jobs:

- name: Lint with flake8
run: |
python -m poetry run flake8 trading_ig docs sample tests
poetry run flake8 trading_ig docs sample tests

- name: Unit tests with pytest
run: |
python -m poetry run python -m pytest --ignore=tests/test_integration.py
poetry run pytest --ignore=tests/test_integration.py
13 changes: 6 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ classifiers = [
]

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
python = "^3.9"
requests = "^2.24"
pycryptodome = "^3.9"
requests-cache = "^0.5"
Expand All @@ -48,17 +48,16 @@ docs = [
]

[tool.poetry.group.dev.dependencies]
flake8 = "^3.9"
pytest = "^6.2"
responses = "^0.12"
coveralls = "^3.2"
flake8 = "^7"
pytest = "^8"
responses = "^0.25"
coveralls = "^3"
sphinx-rtd-theme = {version = "^1.0.0", optional = true}
importlib-metadata = "==4.13.0"
black = "23.3.0"

[tool.poetry.urls]
"Issues" = "https://github.com/ig-python/trading-ig/issues"

[build-system]
requires = ["poetry-core>=1.0.0"]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
Loading