Skip to content

Releases: c-bata/github-actions-kurobako

Release v2

28 Jan 17:19
Compare
Choose a tag to compare

v2 contains a change to add title input option. You can specify a title text like:

screenshot

Initial release: v1

18 Jan 12:31
67cbb8e
Compare
Choose a tag to compare

GitHub Action to generate kurobako report and comment it to the pull request.

Goptuna use this action like this:

name: Run kurobako benchmark
on:
  pull_request:
    branches:
    - master
jobs:
  benchmarks:
    name: Run kurobako benchmark
    runs-on: ubuntu-latest

    steps:
      - name: Check out code into the Go module directory
        uses: actions/checkout@master

      - uses: actions/setup-python@v1
        with:
          python-version: '3.8'
          architecture: 'x64'
      - run: pip install numpy kurobako git+https://github.com/sigopt/evalset.git

      - name: Set up Go 1.13
        uses: actions/setup-go@v1
        with:
          go-version: 1.13
        id: go

      - name: Download kurobako CLI
        run: |
          curl -L https://github.com/sile/kurobako/releases/download/0.1.4/kurobako-0.1.4.linux-amd64 -o kurobako
          chmod +x kurobako
          ./kurobako -h

      - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
        with:
          version: '275.0.0'
          service_account_key: ${{ secrets.GCP_SA_KEY }}
      - run: gcloud info
      - run: gcloud config set project ${{ secrets.GCP_PROJECT_ID }}

      - name: Run sigopt/evalset/Ackley Benchmark
        env:
          KUROBAKO: ./kurobako
        run: |
          ./_benchmarks/runner.sh ./kurobako-report.json

      - name: Plot kurobako result
        uses: c-bata/github-actions-kurobako/plot@v1
        id: kurobako-plot
        with:
          report-json-path: './kurobako-report.json'
      - name: Upload an image to google cloud storage
        run: gsutil cp ${{ steps.kurobako-plot.outputs.image-path }} gs://kurobako-reports/${{ github.repository }}/${{ github.sha }}.png

      - name: Generate kurobako markdown report
        run: |
          cat ./kurobako-report.json | ./kurobako report > ./kurobako-report.md

      - name: Comment to Pull Request
        uses: c-bata/github-actions-kurobako@v1
        with:
          report-md-path: './kurobako-report.md'
          public-image-url: https://storage.googleapis.com/kurobako-reports/${{ github.repository }}/${{ github.sha }}.png
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}