Skip to content

figgz zlight izzue. #10

figgz zlight izzue.

figgz zlight izzue. #10

Workflow file for this run

name: Upload to PyPi
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up CPython ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine pytest
- name: Build & Install
run: |
python setup.py sdist bdist_wheel
python -m pip install .
- name: Run tests
run: |
python -m pytest ./tests
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*
- name: Clean up
run: |
rm -rf dist