Open dataset wrapper #520
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
| name: tests | |
| on: [push, pull_request] | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: "recursive" | |
| - name: Setup uv | |
| id: setup-uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Print the installed version | |
| run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}" | |
| - name: Set up Python ${{ matrix.python-version }} and install dependencies | |
| run: | | |
| uv python install ${{ matrix.python-version }} | |
| uv sync --python ${{ matrix.python-version }} --frozen | |
| - name: Cache Zenodo datasets | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/sdf_datasets | |
| key: sdf-datasets-17991042 | |
| - name: Test with pytest | |
| run: uv run pytest |