Skip to content

Merge pull request #36 from fiddler-labs/infra/ci_manual_trigger #15

Merge pull request #36 from fiddler-labs/infra/ci_manual_trigger

Merge pull request #36 from fiddler-labs/infra/ci_manual_trigger #15

Workflow file for this run

name: "Publish"
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
# - name: Install Jupyter
# run: |
# which pip
# which python
# python -c "import sys; print(sys.executable)"
# pip install wheel
# pip install jupyter
# - name: Install Checklist
# run: |
# pip install --no-build-isolation checklist==0.0.11
- name: Install package
run: |
pip install .[test]
- name: Check version tag in __init__.py
run: |
LOCAL_VERSION=$(python -c 'import auditor; print(auditor.__version__);')
echo $LOCAL_VERSION
- name: Build and Publish to PyPI
shell: bash
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
pip install twine
pip install build
make clean build
# make publish_test
make publish