feat: improve blackbe_api.py #4
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
# This workflow will install Python dependencies and run tests with a variety of Python versions | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Lint with Ruff | |
run: | | |
pip install ruff | |
ruff check --output-format=github . | |
continue-on-error: true | |
- name: Build Wheel | |
run: | | |
pip install pipx | |
pipx run build --wheel | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: endstone_blackbe.whl | |
path: dist/*.whl |