From 22227bd98a62058ed797f59c3e71231d839b20da Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Thu, 10 Oct 2024 10:35:18 +0200 Subject: [PATCH] Speed up tests --- .github/workflows/test.yaml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2bfe232..426b711 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -39,29 +39,21 @@ jobs: PYTHON: ${{ matrix.python }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - cache: "pip" - cache-dependency-path: "**/pyproject.toml" - - - name: Install test dependencies - run: | - python -m pip install --upgrade pip wheel + - uses: hynek/setup-cached-uv@v2 - name: Install dependencies - run: | - pip install ${{ matrix.pip-flags }} ".[dev,test]" + run: uv pip install --system ${{ matrix.pip-flags }} ".[dev,test]" - name: Test env: MPLBACKEND: agg PLATFORM: ${{ matrix.os }} DISPLAY: :42 - run: | - coverage run -m pytest -v --color=yes + run: coverage run -m pytest -v --color=yes - name: Report coverage - run: | - coverage report + run: coverage report - name: Upload coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4