Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions .github/workflows/benchmark-impl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,20 @@ jobs:
num_elements: ${{ fromJSON(inputs.num_elements)}}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- uses: actions/setup-python@v5
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: hpcflow/github-support/setup-poetry@0.3
- name: Set up poetry
uses: hpcflow/github-support/setup-poetry@0.3
with:
version: ${{ inputs.poetry-version }}
- uses: hpcflow/github-support/init-cache@0.3
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: benchmark
version: ${{ matrix.python-version }}
Expand All @@ -91,24 +95,29 @@ jobs:
N_ELEMS: ${{ matrix.num_elements }}
shell: bash

- uses: actions/upload-artifact@v4
- name: Store benchmark file
uses: actions/upload-artifact@v4
with:
name: ${{ steps.vars.outputs.timeit }}
path: ${{ steps.vars.outputs.timeit }}
retention-days: 1

upload:
needs: make
outputs:
url: ${{ steps.upload.outputs.artifact-url }}
runs-on: ubuntu-latest
steps:
- run: |
- name: Make directory
run: |
mkdir benchmarks
- uses: actions/download-artifact@v4
- name: Fetch benchmark files
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: benchmarks
- uses: actions/upload-artifact@v4
- name: Store benchmark data archive
uses: actions/upload-artifact@v4
id: upload
with:
name: benchmarks
Expand Down
33 changes: 22 additions & 11 deletions .github/workflows/build-exes-impl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ jobs:
version: ${{ steps.info.outputs.vers }}
sha: ${{ steps.info.outputs.sha }}
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # get all history and tags
- name: Get executable version name and store git SHA
Expand All @@ -137,15 +138,19 @@ jobs:
needs: status
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Checkout
uses: actions/checkout@v4
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: hpcflow/github-support/init-cache@0.3
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: build-exe
version: ${{ inputs.python-version }}
- uses: hpcflow/github-support/setup-poetry@0.3
- name: Set up poetry
uses: hpcflow/github-support/setup-poetry@0.3
with:
version: ${{ inputs.poetry-version }}

Expand Down Expand Up @@ -230,15 +235,19 @@ jobs:
needs: status
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Checkout
uses: actions/checkout@v4
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: hpcflow/github-support/init-cache@0.3
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: build-exe
version: ${{ inputs.python-version }}
- uses: hpcflow/github-support/setup-poetry@0.3
- name: Set up poetry
uses: hpcflow/github-support/setup-poetry@0.3
with:
version: ${{ inputs.poetry-version }}

Expand Down Expand Up @@ -323,8 +332,10 @@ jobs:
needs: status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hpcflow/github-support/init-cache@0.3
- name: Checkout
uses: actions/checkout@v4
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: build-exe
version: ${{ inputs.python-version }}
Expand Down
100 changes: 67 additions & 33 deletions .github/workflows/release-impl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,16 @@ jobs:
version: ${{ steps.new_tag.outputs.version }}
changelog: ${{ steps.upload-changelog.outputs.artifact-url }}
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # get all history and tags
ref: ${{ inputs.pr-base-ref }}
token: ${{ secrets.commit-token }}
- uses: hpcflow/github-support/configure-git@0.3
- uses: actions/setup-python@v5
- name: Configure git
uses: hpcflow/github-support/configure-git@0.3
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

Expand Down Expand Up @@ -278,7 +281,8 @@ jobs:
env:
new_tag: ${{ steps.new_tag.outputs.tag }}

- uses: actions/upload-artifact@v4
- name: Store the incremental CHANGELOG
uses: actions/upload-artifact@v4
id: upload-changelog
with:
name: CHANGELOG_increment
Expand All @@ -300,17 +304,21 @@ jobs:

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.pr-base-ref }} # otherwise we get the ref when the workflow started (missing above commit)
- uses: actions/setup-python@v5
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: hpcflow/github-support/init-cache@0.3
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: build
version: ${{ inputs.python-version }}
- uses: hpcflow/github-support/setup-poetry@0.3
- name: Set up poetry
uses: hpcflow/github-support/setup-poetry@0.3
with:
version: ${{ inputs.poetry-version }}

Expand Down Expand Up @@ -391,10 +399,12 @@ jobs:
runs-on: ubuntu-latest
needs: bump-version
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.pr-base-ref }} # otherwise we get the ref when the workflow started (missing above commit)
- uses: hpcflow/github-support/init-cache@0.3
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: build
version: ${{ inputs.python-version }}
Expand Down Expand Up @@ -476,16 +486,20 @@ jobs:
- 10000
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-python@v5
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: hpcflow/github-support/setup-poetry@0.3
- name: Set up poetry
uses: hpcflow/github-support/setup-poetry@0.3
with:
version: ${{ inputs.poetry-version }}
- uses: hpcflow/github-support/init-cache@0.3
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: benchmark
version: ${{ matrix.python-version }}
Expand All @@ -498,30 +512,36 @@ jobs:
run: |
poetry run ${{ inputs.executable_name }} --timeit-file benchmark_make_workflow_${{ matrix.num_elements }}_elements-${{ runner.os }}-py-${{ matrix.python-version }}.txt make ${{ inputs.benchmark_make_workflow }} --var N ${{ matrix.num_elements }}

- uses: actions/upload-artifact@v4
- name: Store benchmark data
uses: actions/upload-artifact@v4
with:
name: benchmark_make_workflow_${{ matrix.num_elements }}_elements-${{ runner.os }}-py-${{ matrix.python-version }}.txt
path: benchmark_make_workflow_${{ matrix.num_elements }}_elements-${{ runner.os }}-py-${{ matrix.python-version }}.txt
retention-days: 1

make-workflow-benchmark-upload:
needs: make-workflow-benchmark
runs-on: ubuntu-latest
outputs:
benchmark-url: ${{ steps.upload.outputs.artifact-url }}
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- run: |
- name: Make benchmark directory
run: |
mkdir benchmarks
- uses: actions/download-artifact@v4
- name: Load benchmark data
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: benchmarks
- name: zip benchmark results
run: |
zip -r ./benchmarks.zip benchmarks
- uses: actions/upload-artifact@v4
- name: Store compound benchmark data
uses: actions/upload-artifact@v4
with:
name: benchmarks.zip
path: benchmarks.zip
Expand All @@ -541,17 +561,21 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.pr-base-ref }} # otherwise we get the ref when the workflow started (missing above commit)
- uses: actions/setup-python@v5
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: hpcflow/github-support/init-cache@0.3
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: release
version: ${{ inputs.python-version }}
- uses: hpcflow/github-support/setup-poetry@0.3
- name: Set up poetry
uses: hpcflow/github-support/setup-poetry@0.3
with:
version: ${{ inputs.poetry-version }}

Expand All @@ -561,9 +585,11 @@ jobs:
- name: Build (for PyPI)
run: poetry build

- run: mkdir release-artifacts
- name: Make release artifact directory
run: mkdir release-artifacts

- uses: actions/download-artifact@v4
- name: Download release artifacts
uses: actions/download-artifact@v4
with:
path: release-artifacts

Expand Down Expand Up @@ -615,15 +641,18 @@ jobs:
needs: release-github-PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # get all history and tags
ref: ${{ inputs.pr-base-ref }} # otherwise we get the ref when the workflow started (missing above commit)
token: ${{ secrets.commit-token }}

- uses: hpcflow/github-support/configure-git@0.3
- name: Configure git
uses: hpcflow/github-support/configure-git@0.3

- uses: actions/setup-python@v5
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

Expand All @@ -649,11 +678,13 @@ jobs:
echo "No ${{ inputs.pre_release_branch }} branch to merge into."
fi

- uses: hpcflow/github-support/init-cache@0.3
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: release-doc
version: ${{ inputs.python-version }}
- uses: hpcflow/github-support/setup-poetry@0.3
- name: Set up poetry
uses: hpcflow/github-support/setup-poetry@0.3
with:
version: ${{ inputs.poetry-version }}

Expand All @@ -678,16 +709,19 @@ jobs:
outputs:
publish-state: ${{ steps.publish.outcome }}
steps:
- uses: actions/setup-python@v5
- name: Set up python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ inputs.website_source_org }}/${{ inputs.website_source_repo }}
token: ${{ secrets.website-token }}

- uses: hpcflow/github-support/configure-git@0.3
- name: Configure git
uses: hpcflow/github-support/configure-git@0.3

- name: Download documentation artifact
uses: actions/download-artifact@v4
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test-pre-python-impl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,22 @@ jobs:

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- uses: actions/setup-python@v5
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- uses: hpcflow/github-support/init-cache@0.3
- name: Cache dependencies
uses: hpcflow/github-support/init-cache@0.3
with:
name: test
version: ${{ matrix.python-version }}
- uses: hpcflow/github-support/setup-poetry@0.3
- name: Set up poetry
uses: hpcflow/github-support/setup-poetry@0.3
with:
version: ${{ inputs.poetry-version }}

Expand Down