diff --git a/.github/workflows/build.yaml b/.github/workflows/python.yaml similarity index 93% rename from .github/workflows/build.yaml rename to .github/workflows/python.yaml index 29216ef..20f28bf 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/python.yaml @@ -1,10 +1,14 @@ -name: build +name: python on: [push, pull_request, workflow_dispatch] permissions: contents: read +defaults: + run: + working-directory: python + jobs: test: runs-on: ubuntu-latest @@ -20,6 +24,7 @@ jobs: - name: Build wheel uses: PyO3/maturin-action@v1 with: + working-directory: python args: --release --out dist --find-interpreter sccache: 'true' - name: Install wheel @@ -41,6 +46,7 @@ jobs: - name: Build wheels uses: PyO3/maturin-action@v1 with: + working-directory: python target: ${{ matrix.target }} args: --release --out dist --find-interpreter sccache: 'true' @@ -66,6 +72,7 @@ jobs: - name: Build wheels uses: PyO3/maturin-action@v1 with: + working-directory: python target: ${{ matrix.target }} args: --release --out dist --find-interpreter sccache: 'true' @@ -89,6 +96,7 @@ jobs: - name: Build wheels uses: PyO3/maturin-action@v1 with: + working-directory: python target: ${{ matrix.target }} args: --release --out dist --find-interpreter sccache: 'true' @@ -106,6 +114,7 @@ jobs: - name: Build sdist uses: PyO3/maturin-action@v1 with: + working-directory: python command: sdist args: --out dist - name: Upload sdist diff --git a/Cargo.lock b/python/Cargo.lock similarity index 100% rename from Cargo.lock rename to python/Cargo.lock diff --git a/Cargo.toml b/python/Cargo.toml similarity index 100% rename from Cargo.toml rename to python/Cargo.toml diff --git a/README.md b/python/README.md similarity index 100% rename from README.md rename to python/README.md diff --git a/benches/test_bench.py b/python/benches/test_bench.py similarity index 100% rename from benches/test_bench.py rename to python/benches/test_bench.py diff --git a/cases/__init__.py b/python/cases/__init__.py similarity index 100% rename from cases/__init__.py rename to python/cases/__init__.py diff --git a/cases/__init__.pyi b/python/cases/__init__.pyi similarity index 100% rename from cases/__init__.pyi rename to python/cases/__init__.pyi diff --git a/cases/py.typed b/python/cases/py.typed similarity index 100% rename from cases/py.typed rename to python/cases/py.typed diff --git a/dev/requirements.in b/python/dev/requirements.in similarity index 100% rename from dev/requirements.in rename to python/dev/requirements.in diff --git a/dev/requirements.txt b/python/dev/requirements.txt similarity index 100% rename from dev/requirements.txt rename to python/dev/requirements.txt diff --git a/pyproject.toml b/python/pyproject.toml similarity index 100% rename from pyproject.toml rename to python/pyproject.toml diff --git a/src/lib.rs b/python/src/lib.rs similarity index 100% rename from src/lib.rs rename to python/src/lib.rs diff --git a/src/transform.rs b/python/src/transform.rs similarity index 100% rename from src/transform.rs rename to python/src/transform.rs diff --git a/tests/test_cases.py b/python/tests/test_cases.py similarity index 100% rename from tests/test_cases.py rename to python/tests/test_cases.py