From 3e80a57f4ccdfe31d671ee0b80e8811bdc451e6f Mon Sep 17 00:00:00 2001 From: speedcell4 Date: Sun, 3 Mar 2024 21:25:37 +0900 Subject: [PATCH] Chore: Update python version --- .github/workflows/python-publish.yml | 21 ++++++++------------- .github/workflows/unit-tests.yml | 14 ++++++++------ setup.py | 1 + 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 7a438eb..44a3de7 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,31 +1,26 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -name: Upload Python Package +name: publish package on: release: types: [ created ] jobs: - deploy: - + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.9' - name: Install dependencies run: | - python -m pip install --upgrade pip - python -m pip install setuptools wheel twine + python -m pip install --upgrade pip setuptools wheel + python -m pip install twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | python setup.py sdist bdist_wheel - twine upload dist/* + twine upload dist/* \ No newline at end of file diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 9414613..a5e5825 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,19 +1,21 @@ -name: Unit Tests +name: unit tests -on: [ push ] +on: + workflow_dispatch: + push: jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.9' - name: Install dependencies run: | - python -m pip install pip setuptools wheel --upgrade + python -m pip install pip --upgrade python -m pip install -r requirements.txt python -m pip install pytest hypothesis torchnyan - name: Test with pytest diff --git a/setup.py b/setup.py index 691ab89..7206233 100644 --- a/setup.py +++ b/setup.py @@ -17,5 +17,6 @@ author='speedcell4', author_email='speedcell4@gmail.com', description='Data Processor Combinators for Natural Language Processing', + python_requires='>=3.9', install_requires=install_requires, )