Files
PSO/.github/workflows/pypi.yml
jung-geun 940b2b4e99 23-09-04
plt.ipynb 파일 제거
tensorflow 버전 요건 변경 2.11.1 고정 - > 2.11.1 이하
2023-09-04 14:45:45 +09:00

40 lines
924 B
YAML

name: PyPI package
on:
push:
paths:
- "setup.py"
branches:
- main
permissions:
contents: read
packages: write
jobs:
build-linux:
runs-on: ubuntu-22.04
strategy:
max-parallel: 5
matrix:
python-version: [3.8, 3.9, 3.10, 3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py bdist_wheel sdist
twine upload dist/*.whl dist/*.tar.gz