Skip to content

Commit

Permalink
updated windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
naotoo1 committed Sep 24, 2023
1 parent 3843fdb commit 384e4bd
Showing 1 changed file with 49 additions and 19 deletions.
68 changes: 49 additions & 19 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,55 @@ on:
- main

name: Windows build
# jobs:
# test-windows:
# runs-on: windows-latest
jobs:
test-windows:
runs-on: windows-latest
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} (${{ matrix.python-version}})
strategy:
fail-fast: false
matrix:
os: ["windows-latest"]
python-version: ["3.7","3.8"]
steps:
- uses: actions/checkout@v3
- name: Install miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
python-version: "3.8"
- name: Install GDAL
run: conda install -c conda-forge gdal --yes
- name: Test GDAL installation
run: |
python -c "from osgeo import gdal"
gdalinfo --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir Cython
pip install -r requirements.txt
pip install .
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version}}
- name: Install GDAL
run: |
brew install gdal
- name: Test GDAL installation
run: |
gdalinfo --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir Cython
pip install -r requirements.txt
pip install .
# steps:
# - uses: actions/checkout@v3
# - name: Install miniconda
# uses: conda-incubator/setup-miniconda@v2
# with:
# auto-activate-base: true
# python-version: "3.8"
# - name: Install GDAL
# run: conda install -c conda-forge gdal --yes
# - name: Test GDAL installation
# run: |
# python -c "from osgeo import gdal"
# gdalinfo --version
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install --no-cache-dir Cython
# pip install -r requirements.txt
# pip install .

0 comments on commit 384e4bd

Please sign in to comment.