Skip to content

Merge pull request #63 from MunchLab/AddingMergeTree #40

Merge pull request #63 from MunchLab/AddingMergeTree

Merge pull request #63 from MunchLab/AddingMergeTree #40

name: Publish Python Distributions to PyPI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-n-publish:
name: Build and publish python distributions to PyPI
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@master
with:
ref: 'master'
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Install package for testing
run: pip install .
- name: Run tests
run: make tests
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI }}