Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c112fcc

Browse files
authoredApr 25, 2021
Merge branch 'master' into mdformat-myst
2 parents 93fe9a3 + 53d9b33 commit c112fcc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+113
-6144
lines changed
 

‎.github/workflows/benchmark.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -46,45 +46,3 @@ jobs:
4646
commit-msg-append: "[ci skip]"
4747
one-chart-groups: packages,plugins
4848
fail-on-alert: false
49-
50-
benchmark-plugins:
51-
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v2
55-
56-
- name: Set up Python 3.8
57-
uses: actions/setup-python@v2
58-
with:
59-
python-version: 3.8
60-
61-
- name: Install tox
62-
run: |
63-
python -m pip install --upgrade pip
64-
pip install tox
65-
66-
- name: Run plugin benchmarks
67-
run: tox -e py38-bench-plugins -- --benchmark-min-rounds 20 --benchmark-json bench-plugins.json
68-
69-
# - name: Upload plugin data
70-
# uses: actions/upload-artifact@v2
71-
# with:
72-
# name: bench-plugins
73-
# path: bench-plugins.json
74-
# if-no-files-found: error
75-
76-
- name: Store benchmark result
77-
uses: chrisjsewell/github-action-benchmark@v2
78-
with:
79-
name: Parsing Benchmarks
80-
output-file-path: bench-plugins.json
81-
# Use personal access token instead of GITHUB_TOKEN due to https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false
82-
github-token: ${{ secrets.GITHUB_TOKEN }}
83-
auto-push: true
84-
commit-msg-append: "[ci skip]"
85-
one-chart-groups: packages,plugins
86-
# Show alert with commit comment on detecting possible performance regression
87-
alert-threshold: '200%'
88-
comment-on-alert: true
89-
fail-on-alert: false
90-
alert-comment-cc-users: '@chrisjsewell'

‎.github/workflows/tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
tags:
1010
- 'v*'
1111
pull_request:
12+
schedule:
13+
- cron: '0 0 * * 0' # every week
1214

1315
jobs:
1416

@@ -53,6 +55,29 @@ jobs:
5355
file: ./coverage.xml
5456
fail_ci_if_error: true
5557

58+
test-plugins:
59+
60+
runs-on: ubuntu-latest
61+
strategy:
62+
matrix:
63+
python-version: [3.8]
64+
steps:
65+
- uses: actions/checkout@v2
66+
- name: Set up Python ${{ matrix.python-version }}
67+
uses: actions/setup-python@v2
68+
with:
69+
python-version: ${{ matrix.python-version }}
70+
- name: Install markdown-it-py
71+
run: |
72+
python -m pip install --upgrade pip
73+
pip install .[testing]
74+
- name: clone and install mdit-py-plugins
75+
run: |
76+
git clone https://github.com/executablebooks/mdit-py-plugins.git
77+
pip install --no-deps -e mdit-py-plugins
78+
- name: Run pytest for unit tests of mdit-py-plugins
79+
run: cd mdit-py-plugins; pytest
80+
5681
benchmark:
5782

5883
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)
Please sign in to comment.