diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afbf253..1f40b4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,11 @@ jobs: ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 id: setup-python with: - python-version: '3.12' + python-version: '3.14' - name: Install Poetry uses: snok/install-poetry@v1 @@ -26,7 +26,7 @@ jobs: - name: Load cached venv id: cached-poetry-dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} @@ -54,7 +54,7 @@ jobs: run: poetry run pytest --cov --cov-report=xml - name: Upload coverage - uses: codecov/codecov-action@v4.0.1 + uses: codecov/codecov-action@v6 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a9387fc..f26631e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ jobs: if: github.repository_owner == 'Blagues-API' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 2 @@ -26,11 +26,11 @@ jobs: run: | git diff HEAD^ HEAD -- pyproject.toml | grep '+version' && echo "version_changed=true" >> $GITHUB_OUTPUT || echo "version_changed=false" >> $GITHUB_OUTPUT - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 if: steps.check_version.outputs.version_changed == 'true' id: setup-python with: - python-version: '3.12' + python-version: '3.14' - name: Install Poetry if: steps.check_version.outputs.version_changed == 'true' @@ -42,7 +42,7 @@ jobs: - name: Load cached venv if: steps.check_version.outputs.version_changed == 'true' id: cached-poetry-dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} @@ -53,6 +53,6 @@ jobs: - name: Publish package distributions to PyPI if: steps.check_version.outputs.version_changed == 'true' - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@v1 with: packages-dir: dist/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index 59294d3..c4efc71 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ poetry.lock .env .pytest_cache/ .venv/ -coverage.xml \ No newline at end of file +coverage.xml +.idea/ \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 1baf622..7ec051a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,22 +13,22 @@ readme = "README.md" repository = "https://github.com/Blagues-API/package-py" [tool.poetry.dependencies] -python = "^3.8.1" -aiohttp = "^3.9.5" -pydantic = "^2.8.2" +python = "^3.14.4" +aiohttp = "^3.13.5" +pydantic = "^2.13.2" [tool.poetry.dev-dependencies] -pytest = "^7.1.2" -pytest-asyncio = "^0.18.3" -python-dotenv = "^0.20.0" -flake8 = "^7.1.0" -flake8-pyproject = "^1.2.3" -black = "^24.4.2" -isort = "^5.13.2" -pytest-cov = "^5.0.0" +pytest = "^9.0.3" +pytest-asyncio = "^1.3.0" +python-dotenv = "^1.2.2" +flake8 = "^7.3.0" +flake8-pyproject = "^1.2.4" +black = "^26.3.1" +isort = "^8.0.1" +pytest-cov = "^7.1.0" [build-system] -requires = ["poetry-core>=1.0.0"] +requires = ["poetry-core>=2.0.0"] build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options]