Skip to content

Commit

Permalink
Remove test 'extras' and run lithops tests separately
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Dec 5, 2024
1 parent 9ef5cc6 commit 12d37ca
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/beam-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dask-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/lithops-tests.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/modal-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zarr-v3-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
34 changes: 1 addition & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 12d37ca

Please # to comment.