Skip to content

Fix the hedId tools for release use #1150

Fix the hedId tools for release use

Fix the hedId tools for release use #1150

Workflow file for this run

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.13"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Create work directory
run: mkdir workdir
- name: Create virtual environment
run: uv venv workdir/.venv --python ${{ matrix.python-version }}
- name: Install package
run: |
source workdir/.venv/bin/activate
uv pip install "$GITHUB_WORKSPACE"
- name: Run post-installation test
run: |
source workdir/.venv/bin/activate
python -c "from hed.models.hed_string import HedString; print('Import test passed.')"