Skip to content

Commit

Permalink
Backport PR matplotlib#29191: ci: Simplify 3.13t test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell authored and meeseeksmachine committed Nov 26, 2024
1 parent 0586854 commit 562d458
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ jobs:
allow-prereleases: true

- name: Set up Python ${{ matrix.python-version }}
uses: deadsnakes/action@e640ac8743173a67cca4d7d77cd837e514bf98e8 # v3.2.0
uses: Quansight-Labs/setup-python@b9ab292c751a42bcd2bb465b7fa202ea2c3f5796 # v5.3.1
if: matrix.python-version == '3.13t'
with:
python-version: '3.13'
nogil: true
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install OS dependencies
run: |
Expand Down Expand Up @@ -177,11 +177,6 @@ jobs:
texlive-luatex \
texlive-pictures \
texlive-xetex
if [[ "${{ matrix.python-version }}" = '3.13t' ]]; then
# TODO: Remove this once setup-python supports nogil distributions.
sudo apt-get install -yy --no-install-recommends \
python3.13-tk-nogil
fi
if [[ "${{ matrix.os }}" = ubuntu-20.04 ]]; then
sudo apt-get install -yy --no-install-recommends libopengl0
else # ubuntu-22.04
Expand Down Expand Up @@ -245,15 +240,6 @@ jobs:
4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-
4-${{ runner.os }}-py${{ matrix.python-version }}-mpl-
- name: Install the nightly dependencies
if: matrix.python-version == '3.13t'
run: |
python -m pip install pytz tzdata python-dateutil # Must be installed for Pandas.
python -m pip install \
--pre \
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
--upgrade --only-binary=:all: numpy pandas pillow contourpy
- name: Install Python dependencies
run: |
# Upgrade pip and setuptools and wheel to get as clean an install as
Expand Down

0 comments on commit 562d458

Please sign in to comment.