Skip to content

Commit

Permalink
removing caching mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Feb 12, 2025
1 parent 727ff0d commit ad1666a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4,936 deletions.
37 changes: 9 additions & 28 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.10"] #, "3.12"
python: ["3.10", "3.12"]
os: [ubuntu-latest]
# include:
# - os: macos-latest
# python: "3.10"
# - os: macos-latest
# python: "3.12"
# pip-flags: "--pre"
# name: "Python 3.12 (pre-release)"
include:
- os: macos-latest
python: "3.10"
- os: macos-latest
python: "3.12"
pip-flags: "--pre"
name: "Python 3.12 (pre-release)"

env:
OS: ${{ matrix.os }}
Expand All @@ -39,27 +39,8 @@ jobs:
with:
version: "latest"
python-version: ${{ matrix.python }}
enable-cache: true
prune-cache: false
cache-suffix: "${{ runner.os }}-${{ matrix.python }}"
cache-dependency-glob: |
**/pyproject.toml
**/uv.lock
# - name: Clean uv cache
# # Uncomment this step if you want to regenerate the cache
# run: |
# uv cache clean -v
# echo "CACHE_JUST_CLEARED=true" >> $GITHUB_ENV
- name: Install dependencies
run: |
if [ "${{ steps.setup-uv.outputs.cache-hit }}" != "true" ]; then
echo "uv cache miss"
elif [ "${CACHE_JUST_CLEARED}" == "true" ]; then
echo "uv cache just cleared"
else
echo "uv cache hit"
fi
uv sync --group test
run: "uv sync --extra test"
- name: Test
env:
MPLBACKEND: agg
Expand Down
14 changes: 6 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ dependencies = [
dev = [
"bump2version",
]
test = [
"pytest",
"pytest-cov",
"pytest-mock",
"torch",
]
docs = [
"sphinx>=4.5",
"sphinx-autobuild",
Expand All @@ -78,14 +84,6 @@ extra = [
"spatialdata-io",
]

[dependency-groups]
test = [
"pytest",
"pytest-cov",
"pytest-mock",
"torch",
]

[tool.coverage.run]
source = ["spatialdata"]
omit = [
Expand Down
Loading

0 comments on commit ad1666a

Please sign in to comment.