Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Python 3.12 #286

Merged
merged 3 commits into from
Feb 23, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.9", "3.10", "3.11"]
python: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
run: poetry run poe coverage-xml

- name: Upload coverage report to Codecov
if: matrix.python == '3.11'
if: matrix.python == '3.12'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
![python-v3.9](https://img.shields.io/badge/python-v3.9-blue)
![python-v3.10](https://img.shields.io/badge/python-v3.10-blue)
![python-v3.11](https://img.shields.io/badge/python-v3.11-blue)
![python-v3.11](https://img.shields.io/badge/python-v3.12-blue)
](https://github.com/kitsuyui/ml-playground/actions/workflows/python-test.yml?query=branch%3Amain)

## en: What is this?

This is a repository for machine learning playground and sample codes.
I want to organize samples for myself because sample codes for machine learning are often of low quality.

- GitHub Actions runs tests for each version of Python (3.9 - 3.11) always.
- GitHub Actions runs tests for each version of Python (3.9 - 3.12) always.
- Python 3.8, which is the LTS of Python, will be provided with security fixes until 2024. https://devguide.python.org/versions/
- numpy has ended support for Python 3.8 due to NEP 29. https://numpy.org/neps/nep-0029-deprecation_policy.html
- [Renovate](https://github.com/apps/renovate) continuously updates dependencies.
Expand All @@ -26,7 +27,7 @@ By doing so, I will ensure that sample codes always function as samples.
機械学習の実験場・サンプルコードのリポジトリです。
機械学習周りのサンプルコードはクォリティが高くないことが多いので、自分用にサンプルを整理したいと考えています。

- GitHub Actions で常に各バージョンの Python (3.9 - 3.11) でテストが実行されます。
- GitHub Actions で常に各バージョンの Python (3.9 - 3.12) でテストが実行されます。
- Python の LTS である 3.8 は 2024 年まで security fix が提供されます。 https://devguide.python.org/versions/
- numpy は NEP 29 により Python 3.8 のサポートを終了しています。 https://numpy.org/neps/nep-0029-deprecation_policy.html
- [Renovate](https://github.com/apps/renovate) が継続的に依存パッケージを更新します。
Expand Down
25 changes: 13 additions & 12 deletions example/__snapshots__/test_matplotlib.ambr
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# serializer version: 1
# name: test_matplotlib
'
'''
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
Expand Down Expand Up @@ -870,10 +871,10 @@
</defs>
</svg>

'
---
'''
# ---
# name: test_matplotlib_bar
'
'''
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
Expand Down Expand Up @@ -1565,10 +1566,10 @@
</defs>
</svg>

'
---
'''
# ---
# name: test_matplotlib_hist
'
'''
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
Expand Down Expand Up @@ -2583,10 +2584,10 @@
</defs>
</svg>

'
---
'''
# ---
# name: test_matplotlib_scatter
'
'''
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
Expand Down Expand Up @@ -3373,5 +3374,5 @@
</defs>
</svg>

'
---
'''
# ---