Skip to content

v0.0.7

v0.0.7 #11

Workflow file for this run

name: Publish
on:
release:
types: [created]
jobs:
build-test-publish:
name: Build, Test, and Publish Package to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.7"
- name: "📦 Install Dependencies"
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install black
pip install build
- name: "🔍 Performing Lint & Formatting"
run: black .
- name: "🧪 Running Tests"
run: python -m lazuardy_anfis.tests
- name: "🔨 Building Package"
run: python -m build --sdist --wheel --outdir dist/
- name: "📦 Publish Package to PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}