Skip to content

v0.0.15

v0.0.15 #36

Workflow file for this run

name: Deploy Published Release to PyPi
on:
release:
types: [published]
permissions:
contents: read
jobs:
run-python-test:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10.14]
steps:
- uses: actions/checkout@v4
- name: set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install python dependencies
run: |
python -m pip install --upgrade pip
pip install '.[dev]'
- name: run tests
run: python -m pytest tests/
build-dist:
name: Build Python Distribution
runs-on: ubuntu-latest
# needs: run-python-test
steps:
- uses: actions/checkout@v4
- name: set up Python
uses: actions/setup-python@v5
with:
python-version: 3.10.14
- name: install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: install project dependencies
run: |
pip install .
- name: build
run: python -m build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
pypi-publish:
runs-on: ubuntu-latest
needs: build-dist
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/project/honeybee-REVIVE/
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1