Skip to content
Merged
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
10 changes: 0 additions & 10 deletions .github/workflows/pr-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }} \
Expand Down
2 changes: 1 addition & 1 deletion hs2p/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.0"
__version__ = "1.0.0"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -40,7 +40,9 @@ testing =
tox>=3.24

[options.package_data]
hs2p = py.typed
hs2p =
py.typed
configs/*.yaml

[flake8]
max-line-length = 160
2 changes: 1 addition & 1 deletion test/input/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
csv: "/data/temporary/clement/code/hs2p/test/input/tmp.csv"
csv: "/input/test.csv"

output_dir: "/output"
visualize: true
Expand Down