Repository navigation
Drop the test dependencies on testlib #1148
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.')" |