Skip to content

Fix install flag

Fix install flag #48

Workflow file for this run

name: Upload Python Package
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "aiotfm/__version__.py"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python my_script.py
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r .[dev]
# Cancel the build if ruff detects something wrong
- name: Lint with ruff
run: ruff check
- name: Format with ruff
run: ruff format --check
deploy:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
pip install .
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
twine upload dist/*