Repository: tkscode/pyNormalizeNumExp (language: python)

Issue:
GitHub actionsの修正



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/upload_python_package.yml b/.github/workflows/build.yml
similarity index 100%
rename from .github/workflows/upload_python_package.yml
rename to .github/workflows/build.yml
diff --git a/README.md b/README.md
index 834208a..c187598 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 [![PyPI version](https://badge.fury.io/py/pynormalizenumexp.svg)](https://badge.fury.io/py/pynormalizenumexp)
 [![Python Versions](https://img.shields.io/pypi/pyversions/pynormalizenumexp.svg)](https://pypi.org/project/pynormalizenumexp/)
-[![pytest](https://github.com/tkscode/pyNormalizeNumExp/actions/workflows/pytest.yml/badge.svg?branch=main)](https://github.com/tkscode/pyNormalizeNumExp/actions/workflows/pytest.yml)
+[![pytest](https://github.com/tkscode/pyNormalizeNumExp/actions/workflows/build.yml/badge.svg)](https://github.com/tkscode/pyNormalizeNumExp/actions/workflows/build.yml)
 [![codecov](https://codecov.io/gh/tkscode/pyNormalizeNumExp/graph/badge.svg?token=3Z0YIZV5U1)](https://codecov.io/gh/tkscode/pyNormalizeNumExp)
 
 
diff --git a/pyproject.toml b/pyproject.toml
index ae87edf..db0eb08 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "pynormalizenumexp"
-version = "0.3.1"
+version = "0.3.2"
 description = "NormalizeNumExp for Python"
 authors = ["tkscode"]
 license = "BSD 3-Clause"


Test patch:
diff --git a/.github/workflows/upload_python_package_test.yml b/.github/workflows/build_test.yml
similarity index 69%
rename from .github/workflows/upload_python_package_test.yml
rename to .github/workflows/build_test.yml
index 59d45ce..6ad4d2d 100644
--- a/.github/workflows/upload_python_package_test.yml
+++ b/.github/workflows/build_test.yml
@@ -1,4 +1,4 @@
-name: PyTest and upload Python Package to TestPyPI
+name: build test
 
 on:
   push:
@@ -6,7 +6,8 @@ on:
       - main
 
 jobs:
-  deploy:
+  test:
+    name: Run tests with pytest
     runs-on: ubuntu-latest
 
     steps:
@@ -15,7 +16,8 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v4
 
-      # Python のランタイムをセットアップする
+      # Pythonのランタイムをセットアップする
+      # バージョンは `strategy.matrix` に並べたものを指定する
       # See: https://github.com/actions/setup-python
       - name: Set up Python
         uses: actions/setup-python@v1
@@ -43,6 +45,26 @@ jobs:
           name: codecov-umbrella
           fail_ci_if_error: true
           token: ${{ secrets.CODECOV_TOKEN }}
+  deploy:
+    runs-on: ubuntu-latest
+
+    steps:
+      # リポジトリをチェックアウトする
+      # See: https://github.com/actions/checkout
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      # Python のランタイムをセットアップする
+      # See: https://github.com/actions/setup-python
+      - name: Set up Python
+        uses: actions/setup-python@v1
+        with:
+          python-version: '3.11'
+
+      # Poetryのインストール
+      - name: Install Poetry
+        run: |
+          pip install poetry
 
       # パッケージのビルドとTestPyPIへのアップロード
       - name: Build and publish