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
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v7
with:
submodules: false
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package and test dependencies
run: python -m pip install --upgrade pip && python -m pip install -e '.[dev]'
- name: Lint
run: ruff check .
- name: Test
run: python -m pytest -q
7 changes: 4 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
name: pypi
url: https://pypi.org/p/samexporter
permissions:
contents: read
id-token: write # Mandatory for trusted publishing (OIDC)
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: "3.x"
python-version: "3.13"
- name: Install pypa/build
run: >-
python -m pip install build==1.2.2 twine==6.1.0 --user
Expand Down
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[submodule "sam3"]
path = sam3
url = https://github.com/facebookresearch/sam3.git
[submodule "third_party/segment-anything"]
path = third_party/segment-anything
url = https://github.com/facebookresearch/segment-anything.git
[submodule "third_party/sam2"]
path = third_party/sam2
url = https://github.com/facebookresearch/sam2.git
Loading