Merge pull request #36 from fiddler-labs/infra/ci_manual_trigger #16
Workflow file for this run
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
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 |