Skip to content

Commit 3eda416

Browse files
Merge pull request #351 from bug-or-feature/ci_update
fix CI build
2 parents c4c5c31 + 28ac1cb commit 3eda416

File tree

4 files changed

+18
-19
lines changed

4 files changed

+18
-19
lines changed

.github/workflows/integration-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
python-version: "3.10"
2222

2323
- name: Install Poetry
24-
uses: abatilo/actions-poetry@v2
24+
uses: abatilo/actions-poetry@v3
2525
with:
26-
poetry-version: 1.8.2
26+
poetry-version: "latest"
2727

2828
- name: Install dependencies
2929
run: |
30-
python -m poetry install --extras "pandas munch tenacity"
30+
poetry install --extras "pandas munch tenacity"
3131
3232
- name: Integration test with pytest
3333
env:

.github/workflows/python-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: '3.x'
18+
python-version: "3.10"
1919
- name: Install Poetry
20-
uses: abatilo/actions-poetry@v2
20+
uses: abatilo/actions-poetry@v3
2121
with:
22-
poetry-version: 1.8.2
22+
poetry-version: "latest"
2323
- name: Build and publish
2424
env:
2525
PYPI_USERNAME: __token__

.github/workflows/unit-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: [ "3.9", "3.10", "3.11" ]
16+
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
1717

1818
steps:
1919

@@ -25,13 +25,13 @@ jobs:
2525
python-version: ${{ matrix.python-version }}
2626

2727
- name: Install Poetry
28-
uses: abatilo/actions-poetry@v2
28+
uses: abatilo/actions-poetry@v3
2929
with:
30-
poetry-version: 1.8.2
30+
poetry-version: "latest"
3131

3232
- name: Install dependencies
3333
run: |
34-
python -m poetry install --extras "pandas munch tenacity"
34+
poetry install --extras "pandas munch tenacity"
3535
3636
- name: Prettify with black
3737
uses: psf/black@stable
@@ -40,8 +40,8 @@ jobs:
4040

4141
- name: Lint with flake8
4242
run: |
43-
python -m poetry run flake8 trading_ig docs sample tests
43+
poetry run flake8 trading_ig docs sample tests
4444
4545
- name: Unit tests with pytest
4646
run: |
47-
python -m poetry run python -m pytest --ignore=tests/test_integration.py
47+
poetry run pytest --ignore=tests/test_integration.py

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers = [
2727
]
2828

2929
[tool.poetry.dependencies]
30-
python = ">=3.9,<4.0"
30+
python = "^3.9"
3131
requests = "^2.24"
3232
pycryptodome = "^3.9"
3333
requests-cache = "^0.5"
@@ -48,17 +48,16 @@ docs = [
4848
]
4949

5050
[tool.poetry.group.dev.dependencies]
51-
flake8 = "^3.9"
52-
pytest = "^6.2"
53-
responses = "^0.12"
54-
coveralls = "^3.2"
51+
flake8 = "^7"
52+
pytest = "^8"
53+
responses = "^0.25"
54+
coveralls = "^3"
5555
sphinx-rtd-theme = {version = "^1.0.0", optional = true}
56-
importlib-metadata = "==4.13.0"
5756
black = "23.3.0"
5857

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

6261
[build-system]
63-
requires = ["poetry-core>=1.0.0"]
62+
requires = ["poetry-core>=2.0.0,<3.0.0"]
6463
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)