Correct the learned-heuristic timings, and say what gripper's seed does #437
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] | |
| # Nothing here writes to the repository. Said explicitly so it stays true | |
| # even if the repository default is loosened again. | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: tests-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| # 3.9 reached end of life in October 2025; the floor is now 3.10 | |
| # (kept in sync with requires-python in pyproject.toml). | |
| python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] | |
| # The charts are an optional extra, so most of the matrix runs without | |
| # matplotlib — that is the configuration nearly every user installs, | |
| # and it proves the core stays importable without it. One entry pulls | |
| # it in so `jupyddl/viz/` is actually executed rather than skipped. | |
| extras: [dev] | |
| include: | |
| - os: ubuntu-latest | |
| python-version: '3.12' | |
| extras: dev,viz | |
| name: test (${{ matrix.os }}, ${{ matrix.python-version }}, ${{ matrix.extras }}) | |
| env: | |
| MPLBACKEND: Agg | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package (${{ matrix.extras }} extras) | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[${{ matrix.extras }}]" | |
| - name: Lint with flake8 | |
| run: | | |
| flake8 jupyddl tests tools --count --select=E9,F63,F7,F82 --show-source --statistics | |
| flake8 jupyddl tests tools --count --statistics | |
| - name: Test with pytest | |
| run: | | |
| pytest --cov=jupyddl --cov-report=xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| name: codecov-umbrella |