skip sketchy test entirely on github ci #251
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: | |
| workflow_dispatch: | |
| push: | |
| pull_request: | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| jobs: | |
| run-tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ['3.9', '3.12'] | |
| env: [base] | |
| include: | |
| - os: macos-latest | |
| python-version: '3.11' | |
| env: mac | |
| - os: windows-latest | |
| python-version: '3.11' | |
| env: win | |
| - os: ubuntu-latest | |
| python-version: '3.11' | |
| env: minimal | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "latest" | |
| - name: Install python | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Setup uv project | |
| run: uv sync | |
| - name: Install dependencies | |
| run: uv pip install -r ci/deps/requirements-${{ matrix.env }}.txt | |
| - name: Test with pytest | |
| run: | | |
| uv run pytest \ | |
| tests/ \ | |
| --cov=cotengra \ | |
| --cov-report=xml \ | |
| --verbose \ | |
| --durations=10 \ | |
| -m "not localonly" | |
| - name: Report to codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |