Skip to content

v7.3.0

v7.3.0 #45

Workflow file for this run

name: release-pipeline
on:
release:
types:
- created
jobs:
release-job:
runs-on: ubuntu-latest
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install dependencies
run: |
pip install -e .
pip install flake8 pytest pytest-cov twine build
- name: Test with pytest
run: |
pytest --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8
- name: Install and test with PyMC v5
run: |
pip install "pymc>=6.0.0"
pytest --cov=./calibr8 --cov-append --cov-report xml --cov-report term-missing calibr8
- name: Build package
run: |
python -m build
- name: Check version number match
run: |
echo "GITHUB_REF: ${GITHUB_REF}"
# Make sure the package version is the same as the tag
grep -Rq "^Version: ${GITHUB_REF:11}$" calibr8.egg-info/PKG-INFO
- name: Publish to PyPI
run: |
twine check dist/*
twine upload --repository pypi --username __token__ --password ${PYPI_TOKEN} dist/*
- name: Test installation
run: |
sleep 120
pip install calibr8==${GITHUB_REF:11}