Skip to content
Closed
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
64 changes: 32 additions & 32 deletions .github/workflows/ci_poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache poetry virtualenv
uses: actions/cache@v4
with:
path: ./.venv
key: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }}-tests_core
# - name: Cache poetry virtualenv
# uses: actions/cache@v4
# with:
# path: ./.venv
# key: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }}-tests_core

- name: Install dependencies (without extras)
run: poetry install --with dev --without docs --no-interaction
Expand Down Expand Up @@ -78,38 +78,38 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache poetry virtualenv
uses: actions/cache@v4
with:
path: ./.venv
key: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }}-tests_tasks
# - name: Cache poetry virtualenv
# uses: actions/cache@v4
# with:
# path: ./.venv
# key: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{ hashFiles('**/poetry.lock') }}-tests_tasks

- name: Install dependencies (including fractal-tasks extra)
run: poetry install --with dev --without docs --no-interaction -E fractal-tasks

- name: Check if manifest has changed
run: |
poetry run python fractal_tasks_core/dev/create_manifest.py
echo "*.json diff=json" >> .gitattributes && git config diff.json.textconv "jq --sort-keys '.' \$1"
git diff ./fractal_tasks_core/__FRACTAL_MANIFEST__.json
if [ -n "$(git diff --exit-code ./fractal_tasks_core/__FRACTAL_MANIFEST__.json)" ]; then
echo "__FRACTAL_MANIFEST__.json has changed. Please run 'poetry run python fractal_tasks_core/dev/create_manifest.py' and commit the changes."
exit 1
else
echo "__FRACTAL_MANIFEST__.json has not changed."
fi

- name: Cache Pooch folder
id: cache-pooch-folder
uses: actions/cache@v4
with:
path: ~/.cache/pooch
key: pooch-cache
run: poetry install --with dev --without docs --no-interaction

# - name: Check if manifest has changed
# run: |
# poetry run python fractal_tasks_core/dev/create_manifest.py
# echo "*.json diff=json" >> .gitattributes && git config diff.json.textconv "jq --sort-keys '.' \$1"
# git diff ./fractal_tasks_core/__FRACTAL_MANIFEST__.json
# if [ -n "$(git diff --exit-code ./fractal_tasks_core/__FRACTAL_MANIFEST__.json)" ]; then
# echo "__FRACTAL_MANIFEST__.json has changed. Please run 'poetry run python fractal_tasks_core/dev/create_manifest.py' and commit the changes."
# exit 1
# else
# echo "__FRACTAL_MANIFEST__.json has not changed."
# fi

# - name: Cache Pooch folder
# id: cache-pooch-folder
# uses: actions/cache@v4
# with:
# path: ~/.cache/pooch
# key: pooch-cache

- name: Test tasks with pytest
env:
COVERAGE_FILE: coverage-data-tasks-${{ matrix.python-version }}
run: poetry run coverage run -m pytest tests/dev tests/tasks -s --log-cli-level info
run: poetry run coverage run -m pytest tests/dev --log-cli-level info

- name: Upload coverage data
uses: actions/upload-artifact@v4
Expand All @@ -131,7 +131,7 @@ jobs:
python-version: "3.10"

- name: Install dependencies
run: poetry install --with dev -E fractal-tasks
run: poetry install --with dev

- name: Download data
uses: actions/download-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ _build
venv
site
.vscode
.venv
1 change: 1 addition & 0 deletions fractal_tasks_core/dummy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("test")

Check notice on line 1 in fractal_tasks_core/dummy.py

View workflow job for this annotation

GitHub Actions / Coverage

Missing coverage

Missing coverage on line 1
2 changes: 2 additions & 0 deletions fractal_tasks_core/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def prepare_label_group(
Zarr group of the new label.
"""

print("test")

# Set logger
if logger is None:
logger = logging.getLogger(None)
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ branch = true
parallel = true
relative_files = true
source = ["fractal_tasks_core"]
omit = ["tests/*", "examples/*", "fractal_tasks_core/dev/*"]
omit = [
"tests/*",
"examples/*",
"fractal_tasks_core/dev/*",
"*/.venv/*"]

[tool.bumpver]
current_version = "1.4.0"
Expand Down
80 changes: 0 additions & 80 deletions tests/dev/test_create_schema_for_single_task.py

This file was deleted.

4 changes: 0 additions & 4 deletions tests/tasks/__init__.py

This file was deleted.

174 changes: 0 additions & 174 deletions tests/tasks/_validation.py

This file was deleted.

Loading
Loading