Cache dataset opening #2660
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v6 | |
| - uses: pre-commit/[email protected] | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| environment: [test-py310, test-py311, test-py312, test-py313] | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: prefix-dev/[email protected] | |
| with: | |
| environments: ${{ matrix.environment }} | |
| frozen: true # This seems hacky? | |
| - name: Clean workspace | |
| run: | | |
| git clean -fdx | |
| git reset --hard HEAD | |
| - name: Run tests and generate coverage report | |
| run: | | |
| pixi run -e ${{ matrix.environment }} test-cov | |
| - name: Upload code coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.codecov_token }} | |
| files: ./coverage.xml |