fix incorrect metric readings in hpctoolkit reader v4 #82
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
# Github Actions Workflow for building wheels | |
# The step for creating a github release is borrowed from cython | |
# https://github.com/cython/cython/blob/master/.github/workflows/wheels.yml | |
# The general structure of the workflow is also highly inspired by pandas' | |
# wheel builder workflow | |
# https://github.com/pandas-dev/pandas/blob/main/.github/workflows/wheels.yml | |
name: Build wheels | |
# Run on pull request to the develop or releases branch, but don't | |
# upload wheels | |
on: | |
pull_request: | |
types: [labeled, opened, synchronize, reopened] | |
branches: [develop, releases/**] | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v**' | |
jobs: | |
build_wheels: | |
if: >- | |
github.event_name == 'workflow_dispatch' || | |
(github.event_name == 'pull_request' && | |
contains(github.event.pull_request.labels.*.name, 'type: release')) || | |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) | |
name: Build wheel for ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# GitHub Actions doesn't support pairing matrix values together, let's improvise | |
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026 | |
# The first value of the pair is the host image | |
# You can find a list of host images here https://github.com/actions/runner-images | |
# The second is the cibuildwheel platform | |
# This is the second part of a CIBW_BUILD tag, the part after the cp3xx | |
# (e.g. see here https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip) | |
buildplat: | |
- [ubuntu-22.04, manylinux_x86_64] | |
- [macos-12, macosx_x86_64] | |
# Note: M1 images on Github Actions start from macOS 14 | |
- [macos-14, macosx_arm64] | |
- [windows-2022, win_amd64] | |
python: [["cp38", "3.8"], ["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"]] | |
runs-on: ${{ matrix.buildplat[0] }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.16.5 | |
env: | |
# Disable build isolation since we need the installed Cython from the host | |
CIBW_ENVIRONMENT: PIP_NO_BUILD_ISOLATION=False | |
CIBW_SKIP: pp* *musllinux* | |
CIBW_BEFORE_BUILD: pip install cython | |
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }} | |
CIBW_BEFORE_TEST: pip install pytest | |
# TODO: re-enable tests | |
#CIBW_TEST_COMMAND: pytest {project}/hatchet/tests | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }} | |
path: ./wheelhouse/*.whl | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
files: wheelhouse/*.whl | |
draft: true | |
prerelease: >- | |
${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') | |
|| contains(github.ref_name, 'rc') || contains(github.ref_name, 'dev') }} | |
build_sdist: | |
if: >- | |
github.event_name == 'workflow_dispatch' || | |
(github.event_name == 'pull_request' && | |
contains(github.event.pull_request.labels.*.name, 'type: release')) || | |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) | |
name: Build sdist | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get PyPA build | |
run: python -m pip install build cython | |
- name: Build sdist | |
# Disable isolation so we can have the cython from the host | |
run: python -m build -s --no-isolation | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: sdist | |
path: dist/*.tar.gz | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
files: | | |
dist/*.tar.gz | |
dist/*-none-any.whl | |
draft: true | |
prerelease: >- | |
${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') | |
|| contains(github.ref_name, 'rc') || contains(github.ref_name, 'dev') }} |