From 54445e2a3b05ed51f4c79e2f4cc8a255ccffa485 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Mon, 12 Aug 2024 22:26:20 +0200 Subject: [PATCH] test CI: Update Conda jobs to Python 3.12 (#1422) * test CI: Update Conda jobs to Python 3.12 Python 3.12 is faster, gives better error messages, includes more up-to-date deprecation warnings, and is now properly supported (for some time) on Conda. * test CI: Use python-version from matrix to set up conda env Use the python-version defined in the build matrix to set up the conda environment. * Delete codecov action We're not using codecov anymore. --------- Co-authored-by: Sean Gillies --- .github/workflows/tests.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 91f3e72f..1d7f8eea 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -93,11 +93,11 @@ jobs: matrix: include: - os: macos-13 - python-version: '3.11' + python-version: '3.12' - os: macos-14 - python-version: '3.11' + python-version: '3.12' - os: windows-latest - python-version: '3.11' + python-version: '3.12' steps: - uses: actions/checkout@v4 @@ -109,6 +109,7 @@ jobs: use-mamba: true auto-update-conda: true use-only-tar-bz2: false + python-version: ${{ matrix.python-version }} - name: Install Env (OSX) if: matrix.os == 'macos-13' || matrix.os == 'macos-14' @@ -116,7 +117,7 @@ jobs: run: | conda config --prepend channels conda-forge conda config --set channel_priority strict - conda create -n test python=${{ matrix.python-version }} libgdal geos=3.11 cython=3 + conda create -n test python=${{ matrix.python-version }} libgdal geos=3.12 cython=3 conda activate test python -m pip install -e . || python -m pip install -e . python -m pip install -r requirements-dev.txt @@ -127,7 +128,7 @@ jobs: run: | conda config --prepend channels conda-forge conda config --set channel_priority strict - conda create -n test python=${{ matrix.python-version }} libgdal geos=3.11 cython=3 + conda create -n test python=${{ matrix.python-version }} libgdal geos=3.12 cython=3 conda activate test GDAL_VERSION="3.7" python setup.py build_ext -I"/c/Users/runneradmin/miniconda3/envs/test/Library/include" -lgdal -L"/c/Users/runneradmin/miniconda3/envs/test/Library/lib" install python -m pip install -r requirements-dev.txt @@ -152,5 +153,3 @@ jobs: run: | conda activate test python -m pytest -v -m "not wheel" -rxXs --cov fiona --cov-report term-missing - - - uses: codecov/codecov-action@v3