feat: update #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build-test: | |
name: Build and Test Package | |
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 (CPU)" | |
run: python -m lazuardy_anfis.tests | |
- name: "🧪 Running Tests (GPU)" | |
run: python -m lazuardy_anfis.tests_gpu | |
- name: "🔨 Building Package" | |
run: python -m build --sdist --wheel --outdir dist/ |