Skip to content

Commit

Permalink
test CI: Update Conda jobs to Python 3.12 (#1422)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
EwoutH and sgillies authored Aug 12, 2024
1 parent d7c7ce9 commit 54445e2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -109,14 +109,15 @@ 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'
shell: bash -l {0}
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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 54445e2

Please sign in to comment.