Skip to content

Commit

Permalink
ci: restore paths
Browse files Browse the repository at this point in the history
  • Loading branch information
RaczeQ committed Apr 24, 2024
1 parent 7988c6e commit 2a0dc5f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,20 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
$CONDA/bin/conda install -c conda-forge gdal
PATH=$CONDA/bin:$PATH
ogr2ogr --version
$CONDA/bin/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
PATH=$CONDA/bin:$PATH
ogr2ogr --version
$CONDA/bin/ogr2ogr --version
- name: Install GDAL (windows)
if: matrix.os == 'windows-latest'
run: |
& $env:CONDA\Scripts\conda.exe install -c conda-forge gdal
$env:Path = "$env:CONDA\Library\bin;" + $env:Path
& ogr2ogr.exe --version
& $env:CONDA\Library\bin\ogr2ogr.exe --version
- uses: pdm-project/setup-pdm@v3
name: Setup PDM (Python ${{ matrix.python-version }})
with:
Expand All @@ -70,10 +67,12 @@ 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
Expand Down

0 comments on commit 2a0dc5f

Please sign in to comment.