Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Add files via upload #10

Add files via upload

Add files via upload #10

Workflow file for this run

name: Build and publish to pypi
on:
push:
branches:
- main
jobs:
install-dependencies:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
deploy:
runs-on: ubuntu-latest
needs: install-dependencies
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
test_installation:
needs: deploy
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest]
python-version: [3.8]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install mindsdb-streams
run: pip install mindsdb-streams
- name: Import mindsdb-streams
run: python -c "import mindsdb_streams;print(mindsdb_streams.__name__)"