Skip to content
Merged
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
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,63 @@ jobs:
- name: Test
run: make test

# `make install` follows uv.lock. A merged PR can still fail
# `pip install octop` when dependency ranges resolve differently in a clean
# environment. Build the wheel, install it with pip, and verify the
# published console command from an empty environment.
command-install:
name: Command install (${{ matrix.os }})
runs-on: ${{ matrix.os }}
if: ${{ !startsWith(github.head_ref, 'chore/sync-develop-after-') }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v4
with:
python-version: "3.12"

- name: Build wheel
run: uv build --wheel

- name: Install the wheel with pip (Linux)
if: runner.os == 'Linux'
run: |
set -euo pipefail
uv venv --no-project --python 3.12 --seed /tmp/octop-install
wheels=(dist/octop-*.whl)
if [ "${#wheels[@]}" -ne 1 ]; then
echo "expected one wheel, found: ${wheels[*]}"
exit 1
fi
/tmp/octop-install/bin/python -m pip install --upgrade pip
/tmp/octop-install/bin/python -m pip install "${wheels[0]}"

- name: Install the wheel with pip (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
uv venv --no-project --python 3.12 --seed .octop-install
$wheels = @(Get-ChildItem -Path dist -Filter "octop-*.whl")
if ($wheels.Count -ne 1) {
throw "expected one wheel, found: $($wheels.Name -join ', ')"
}
.\.octop-install\Scripts\python.exe -m pip install --upgrade pip
.\.octop-install\Scripts\python.exe -m pip install $wheels[0].FullName

- name: Verify the installed command (Linux)
if: runner.os == 'Linux'
run: /tmp/octop-install/bin/octop --help

- name: Verify the installed command (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: .\.octop-install\Scripts\octop.exe --help

helm:
name: Helm chart
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies = [
"python-socks>=2.4",
"acme>=5.6.0",
"josepy>=2.2.0",
"boto3>=1.40.61",
"boto3>=1.40.61,<1.40.62",
"octop-browser>=1.0.0",
"playwright>=1.40",
"psycopg[binary]>=3.2",
Expand Down
3 changes: 2 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading