Skip to content

Fix major bug in BSDS500 evaluation #31

Fix major bug in BSDS500 evaluation

Fix major bug in BSDS500 evaluation #31

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload Python Package
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-20.04
strategy:
max-parallel: 1
matrix:
python-version: ['3.8']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install patchelf
python -m pip install --upgrade pip
pip install build
pip install auditwheel==5.1.2
pip install cython numpy
- name: Build package
run: |
python -m build
auditwheel repair dist/*-linux_x86_64.whl --plat manylinux_2_31_x86_64
mv wheelhouse/* dist
rm dist/*-linux_x86_64.whl
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}