Skip to content

Commit

Permalink
tests & docs: minor tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Aug 8, 2023
1 parent 84546d6 commit d434a3c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install -U tox
- run: tox
env:
TOXENV: ${{ matrix.TOXENV }}
asvfull:
if: (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')) || github.event_name == 'schedule'
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || github.event_name == 'schedule'
name: Benchmark (Full)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN || github.token }}
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install
run: |
pip install -U wheel
Expand All @@ -58,14 +61,16 @@ jobs:
GIT_AUTHOR_NAME: ${{ github.actor }}
GIT_AUTHOR_EMAIL: ${{ github.actor }}@users.noreply.github.com
testasv:
if: github.event.ref != 'refs/heads/master' && ! startsWith(github.event.ref, 'refs/tags')
if: github.ref != 'refs/heads/master' && ! startsWith(github.ref, 'refs/tags')
name: Benchmark (Branch)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install
run: |
pip install -U wheel
Expand All @@ -82,6 +87,6 @@ jobs:
- name: Benchmark
run: |
asv continuous --interleave-processes --only-changed -f 1.25 master HEAD
CHANGES="$(asv compare --only-changed -f 1.25 master HEAD)"
echo "$CHANGES"
[ -z "$CHANGES" ] || exit 1
CHANGES=$(asv compare --only-changed -f 1.25 master HEAD)
echo "$CHANGES" >> "$GITHUB_STEP_SUMMARY"
test -z "$CHANGES" || exit 1
2 changes: 1 addition & 1 deletion .meta/.readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ This can be beautified further:

.. code:: sh
$ BYTES="$(du -sb docs/ | cut -f1)"
$ BYTES=$(du -sb docs/ | cut -f1)
$ tar -cf - docs/ \
| tqdm --bytes --total "$BYTES" --desc Processing | gzip \
| tqdm --bytes --total "$BYTES" --desc Compressed --position 1 \
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ This can be beautified further:

.. code:: sh
$ BYTES="$(du -sb docs/ | cut -f1)"
$ BYTES=$(du -sb docs/ | cut -f1)
$ tar -cf - docs/ \
| tqdm --bytes --total "$BYTES" --desc Processing | gzip \
| tqdm --bytes --total "$BYTES" --desc Compressed --position 1 \
Expand Down

0 comments on commit d434a3c

Please sign in to comment.