diff --git a/.github/workflows/pr-test.yaml b/.github/workflows/pr-test.yaml index fb4e83e..a13ceb0 100644 --- a/.github/workflows/pr-test.yaml +++ b/.github/workflows/pr-test.yaml @@ -16,9 +16,6 @@ jobs: # don't run secret-using job on forked PRs if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} - env: - HF_TOKEN: ${{ secrets.HF_TOKEN }} - steps: - name: Check out repository uses: actions/checkout@v4 @@ -56,17 +53,10 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max - - name: Guard required secret (if needed) - if: ${{ github.event_name != 'pull_request' }} # or drop the condition if PRs from same repo need it - run: | - set -euo pipefail - test -n "${HF_TOKEN:-}" || { echo "HF_TOKEN is required but not set"; exit 1; } - - name: Generate outputs in container run: | set -euo pipefail docker run --rm \ - -e HF_TOKEN="$HF_TOKEN" \ -v "$GITHUB_WORKSPACE/test/input:/input" \ -v "$GITHUB_WORKSPACE/test/output:/output" \ hs2p:${{ github.sha }} \ diff --git a/hs2p/__init__.py b/hs2p/__init__.py index 6c8e6b9..5becc17 100644 --- a/hs2p/__init__.py +++ b/hs2p/__init__.py @@ -1 +1 @@ -__version__ = "0.0.0" +__version__ = "1.0.0" diff --git a/pyproject.toml b/pyproject.toml index faae7f1..8d49991 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ warn_unused_configs = true no_implicit_reexport = true [tool.bumpver] -current_version = "0.0.0" +current_version = "1.0.0" version_pattern = "MAJOR.MINOR.PATCH" commit = false # We do version bumping in CI, not as a commit tag = false # Git tag already exists — we don't auto-tag diff --git a/setup.cfg b/setup.cfg index 6759cc4..70ae6af 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = hs2p -version = 0.0.0 +version = 1.0.0 description = Embedding of whole slide images with Foundation Models author = Clément Grisi platforms = unix, linux, osx, cygwin, win32 @@ -40,7 +40,9 @@ testing = tox>=3.24 [options.package_data] -hs2p = py.typed +hs2p = + py.typed + configs/*.yaml [flake8] max-line-length = 160 diff --git a/test/input/config.yaml b/test/input/config.yaml index 6cbcbfd..cf947af 100644 --- a/test/input/config.yaml +++ b/test/input/config.yaml @@ -1,4 +1,4 @@ -csv: "/data/temporary/clement/code/hs2p/test/input/tmp.csv" +csv: "/input/test.csv" output_dir: "/output" visualize: true