Skip to content

Commit

Permalink
Chore: Update python version
Browse files Browse the repository at this point in the history
  • Loading branch information
speedcell4 committed Mar 3, 2024
1 parent c31a39e commit 3e80a57
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -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/*
14 changes: 8 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit 3e80a57

Please sign in to comment.