Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: change macos conda installation
Browse files Browse the repository at this point in the history
RaczeQ committed Apr 24, 2024
1 parent 0cc86fe commit 157ffe2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/_tests.yml
Original file line number Diff line number Diff line change
@@ -28,20 +28,23 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
$CONDA/bin/conda install -c conda-forge gdal
$CONDA/bin/ogr2ogr --version
PATH=$CONDA/bin:$PATH
ogr2ogr --version
- name: Install GDAL (macos)
if: matrix.os == 'macos-13'
run: |
CONDA=$HOME/miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
bash Miniconda3-latest-MacOSX-x86_64.sh -b -p $CONDA
$CONDA/bin/conda install -c conda-forge gdal
$CONDA/bin/ogr2ogr --version
PATH=$CONDA/bin:$PATH
ogr2ogr --version
- name: Install GDAL (windows)
if: matrix.os == 'windows-latest'
run: |
& $env:CONDA\Scripts\conda.exe install -c conda-forge gdal
& $env:CONDA\Library\bin\ogr2ogr.exe --version
& $env:Path = "$env:CONDA\Library\bin;" + $env:Path
& ogr2ogr.exe --version
- uses: pdm-project/setup-pdm@v3
name: Setup PDM (Python ${{ matrix.python-version }})
with:
@@ -67,12 +70,10 @@ jobs:
- name: Run tests with tox (unix)
if: matrix.os != 'windows-latest'
run: |
PATH=$CONDA/bin:$PATH
pdm run tox -e python${{ matrix.python-version }}
- name: Run tests with tox (windows)
if: matrix.os == 'windows-latest'
run: |
$env:Path = "$env:CONDA\Library\bin;" + $env:Path
pdm run tox -e python${{ matrix.python-version }}
- name: Upload coverage to Codecov
uses: Wandalen/wretry.action@master

0 comments on commit 157ffe2

Please sign in to comment.