summaryrefslogtreecommitdiffstats
path: root/.github/workflows/benchmark.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:24:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:24:24 +0000
commit12e8343068b906f8b2afddc5569968a8a91fa5b0 (patch)
tree75cc5e05a4392ea0292251898f992a15a16b172b /.github/workflows/benchmark.yml
parentInitial commit. (diff)
downloadmarkdown-it-py-12e8343068b906f8b2afddc5569968a8a91fa5b0.tar.xz
markdown-it-py-12e8343068b906f8b2afddc5569968a8a91fa5b0.zip
Adding upstream version 2.1.0.upstream/2.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/benchmark.yml')
-rw-r--r--.github/workflows/benchmark.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
new file mode 100644
index 0000000..ef5780b
--- /dev/null
+++ b/.github/workflows/benchmark.yml
@@ -0,0 +1,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