Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,30 @@ jobs:
uv run ruff format --check scripts src tests
- name: Check official Harbor CLI
run: uv run harbor run --help

package:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
python-version: "3.12"
enable-cache: true
- name: Build sdist and wheel
run: uv build
- name: Check the wheel in a clean environment
run: |
uv venv --python 3.12 "$RUNNER_TEMP/check"
uv pip install --python "$RUNNER_TEMP/check/bin/python" dist/*.whl
"$RUNNER_TEMP/check/bin/websitebench" --version
test "$("$RUNNER_TEMP/check/bin/websitebench" list | wc -l)" -eq 70
"$RUNNER_TEMP/check/bin/harbor" --version
- name: Check the sdist contents
run: |
tar -tzf dist/websitebench-*.tar.gz > "$RUNNER_TEMP/sdist.txt"
grep -q 'src/websitebench/websitebench-v1.json$' "$RUNNER_TEMP/sdist.txt"
if grep -q '/tasks/' "$RUNNER_TEMP/sdist.txt"; then
echo "::error::the sdist contains task files"
exit 1
fi
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ uv run ruff format scripts src tests

## CI

[CI](../.github/workflows/ci.yml) runs on Python 3.12 and 3.13. It installs locked dependencies, checks source task definitions, runs the unit tests and Ruff checks, and verifies the official Harbor command's help output.
[CI](../.github/workflows/ci.yml) runs on Python 3.12 and 3.13. It installs locked dependencies, checks source task definitions, runs the unit tests and Ruff checks, and verifies the official Harbor command's help output. A separate job builds the sdist and wheel, installs the wheel in a clean environment and runs `websitebench`.

## Package release

Expand Down
Loading