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
1 change: 1 addition & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-P ubuntu-latest=catthehacker/ubuntu:full-latest
41 changes: 34 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,52 @@ concurrency:

jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.13"

python-version: [ "3.13" ]
steps:
- name: Checkout code
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install uv
- name: Set Up Python with uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Install project
- name: Install Project Dependencies
run: uv sync --locked --all-extras --dev

- name: Run tests
- name: Run Test Suite
run: uv run --with hypothesis pytest src/tests/ -v --hypothesis-profile ci -n auto
env:
OCP_VSCODE_PYTEST: "1"

examples:
name: Run Examples
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
python-version: [ "3.13" ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set Up Python with uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Install Project Dependencies
run: uv sync --locked --all-extras

- name: Run Examples
run: for f in examples/*/main.py; do echo "Running $f"; uv run python "$f"; done
env:
OCP_VSCODE_PYTEST: "1"
2 changes: 1 addition & 1 deletion examples/slanted/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

cap_count = 4

for _ in range(cap_count - 1):
for i in range(cap_count - 1):
last = caps[-1]
cap = last.clone()
cap.length = last.right.length
Expand Down