Skip to content

Commit

Permalink
build: test
Browse files Browse the repository at this point in the history
  • Loading branch information
autumnjolitz committed Jul 27, 2024
1 parent e9e0ac7 commit 28ef677
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,14 @@ jobs:
invoke test
-
name: Benchmark
id: benchmark
run: |
echo 'benchmark='"$(invoke benchmark -f base64)" >> "$GITHUB_OUTPUT"
invoke benchmark -f json > benchmark.txt
-
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.python_version }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.experimental }}
path: benchmark.txt

check-versions:
runs-on: 'ubuntu-latest'
Expand Down Expand Up @@ -151,3 +156,16 @@ jobs:
if [ "x$(invoke local-tag-exists --format json 'v${{ steps.version.outputs.CURRENT_VERSION }}')" = 'xtrue' ]; then
echo '::warning file=CURRENT_VERSION.txt,line=2,title=Version already exists in tags::Tag v${{ steps.version.outputs.CURRENT_VERSION }} already exists.'
fi
collect_benchmark:
runs-on: 'ubuntu-latest'
needs: test_matrix
steps:
-
uses: actions/download-artifact@v4
with:
path: benchmarks
-
run: |
ls -R benchmarks
cat benchmarks/*/*.txt
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,6 @@ def benchmark(context: Context) -> UnitValue:
with suppress(ValueError):
name, val = (x.strip() for x in line.strip().split(":", 1))
if val:
tests.append(UnitValue(name, _.parse_with_unit(val)))
tests.append(UnitValue(name, _.parse_with_unit(val, silent=True)))

return tuple(tests)

0 comments on commit 28ef677

Please sign in to comment.