summaryrefslogtreecommitdiffstats
path: root/.github/workflows/benchmark.yml
blob: ef5780b357b164db87f418c5bf55ab8a89c97826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: benchmark

on:
  push:
    branches: [master]

jobs:
  benchmark-packages:

    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Set up Python 3.8
      uses: actions/setup-python@v2
      with:
        python-version: 3.8

    - name: install pandoc
      uses: r-lib/actions/setup-pandoc@v1
      with:
        pandoc-version: '2.6'

    - name: Install tox
      run: |
        python -m pip install --upgrade pip
        pip install tox

    - name: Run package benchmarks
      run: tox -e py38-bench-packages -- --benchmark-min-rounds 20 --benchmark-json bench-packages.json

    # - name: Upload package data
    #   uses: actions/upload-artifact@v2
    #   with:
    #     name: bench-packages
    #     path: bench-packages.json
    #     if-no-files-found: error

    - name: Store benchmark result
      uses: aiidateam/github-action-benchmark@v2
      with:
        name: Parsing Benchmarks
        output-file-path: bench-packages.json
        github-token: ${{ secrets.GITHUB_TOKEN }}
        auto-push: true
        commit-msg-append: "[ci skip]"
        one-chart-groups: packages,plugins
        fail-on-alert: false