diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 55f0b3e..f49c2f7 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -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: diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ae7cbd6..eba0be8 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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__ diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 2a724fc..6b267d7 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -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: @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index f8cc48a..2546d20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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"