From 72030fb065fcb13563f4f1ef0913a057d52ebfec Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Sat, 3 Aug 2024 21:56:43 +0200 Subject: [PATCH 1/3] 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. --- .github/workflows/tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 91f3e72f..0290fbfd 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 @@ -116,7 +116,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 +127,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 From 31c8493ef09a5088e761237cb407162fbd794ad9 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Sat, 3 Aug 2024 22:07:49 +0200 Subject: [PATCH 2/3] 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. --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0290fbfd..b6e4d65d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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' From c294da25eff0ebe179b61ad26b65ab953d6f33e0 Mon Sep 17 00:00:00 2001 From: Sean Gillies Date: Mon, 12 Aug 2024 14:19:18 -0600 Subject: [PATCH 3/3] Delete codecov action We're not using codecov anymore. --- .github/workflows/tests.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b6e4d65d..1d7f8eea 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -153,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