Skip to content
Open
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
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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') }}
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

if: github.repository_owner == 'Blagues-API'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 2

Expand All @@ -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'
Expand All @@ -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') }}
Expand All @@ -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/
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ poetry.lock
.env
.pytest_cache/
.venv/
coverage.xml
coverage.xml
.idea/
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down