diff --git a/.github/workflows/beam-tests.yml b/.github/workflows/beam-tests.yml index 1017acdd..6b16fe27 100644 --- a/.github/workflows/beam-tests.yml +++ b/.github/workflows/beam-tests.yml @@ -38,7 +38,7 @@ jobs: - name: Install run: | python -m pip install --upgrade pip - python -m pip install -e '.[test-beam]' + python -m pip install -e '.[test,beam]' - name: Run tests run: | diff --git a/.github/workflows/dask-tests.yml b/.github/workflows/dask-tests.yml index 0abb7da4..1b8ec08c 100644 --- a/.github/workflows/dask-tests.yml +++ b/.github/workflows/dask-tests.yml @@ -38,7 +38,7 @@ jobs: - name: Install run: | python -m pip install --upgrade pip - python -m pip install -e '.[test-dask-distributed]' + python -m pip install -e '.[test,dask-distributed]' - name: Run tests run: | diff --git a/.github/workflows/lithops-tests.yml b/.github/workflows/lithops-tests.yml new file mode 100644 index 00000000..5c1ae7f6 --- /dev/null +++ b/.github/workflows/lithops-tests.yml @@ -0,0 +1,45 @@ +name: Lithops tests + +on: + push: + branches: + - "main" + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ["ubuntu-latest", "macos-13"] + python-version: ["3.10"] + + steps: + - name: Checkout source + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + + - name: Setup Graphviz + uses: ts-graphviz/setup-graphviz@v2 + + - name: Install + run: | + python -m pip install --upgrade pip + python -m pip install -e '.[test,lithops]' + + - name: Run tests + run: | + pytest -vs diff --git a/.github/workflows/modal-tests.yml b/.github/workflows/modal-tests.yml index 5f7ceefd..3a3e2fdb 100644 --- a/.github/workflows/modal-tests.yml +++ b/.github/workflows/modal-tests.yml @@ -34,7 +34,7 @@ jobs: - name: Install run: | python -m pip install --upgrade pip - python -m pip install -e '.[test-modal]' + python -m pip install -e '.[test,modal]' - name: Run tests run: | diff --git a/.github/workflows/zarr-v3-tests.yml b/.github/workflows/zarr-v3-tests.yml index b6ef58a6..f1649061 100644 --- a/.github/workflows/zarr-v3-tests.yml +++ b/.github/workflows/zarr-v3-tests.yml @@ -43,7 +43,7 @@ jobs: - name: Install run: | - python -m pip install -e .[test] + python -m pip install -e .[test,lithops] python -m pip install -U git+https://github.com/zarr-developers/zarr-python.git - name: Run tests diff --git a/pyproject.toml b/pyproject.toml index 8ac00fae..1922dfe5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,45 +81,13 @@ coiled = [ "s3fs", ] test = [ - "cubed[diagnostics,lithops]", # modal tests separate due to conflicting package reqs - "dill", - "numpy_groupies", - "pytest", - "pytest-cov", - "pytest-mock", -] -test-beam = [ - "cubed[beam,diagnostics]", - "dill", - "numpy_groupies", - "pytest", - "pytest-cov", - "pytest-mock", -] -test-dask = [ - "cubed[dask,diagnostics]", - "dill", - "numpy_groupies", - "pytest", - "pytest-cov", - "pytest-mock", -] -test-dask-distributed = [ - "cubed[dask-distributed,diagnostics]", + "cubed[diagnostics]", "dill", "numpy_groupies", "pytest", "pytest-cov", "pytest-mock", ] -test-modal = [ - "cubed[modal]", - "numpy_groupies", - "dill", - "pytest", - "pytest-cov", - "pytest-mock", -] [project.urls] homepage = "https://github.com/cubed-dev/cubed"