Skip to content

Update package specification and build system #67

Update package specification and build system

Update package specification and build system #67

Workflow file for this run

name: Build
on:
push:
tags:
- '*'
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install build dependencies
run: python -m pip install build flake8
- name: Run flake8
run: flake8 ./omero2pandas
- name: Build wheel
run: python -m build
- name: Artifact upload
uses: actions/upload-artifact@v4
with:
path: dist/*.whl
retention-days: 30
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://repo.glencoesoftware.com/repository/omero-workflows/