diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 223ba3c..b3da9b2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,18 +18,18 @@ jobs: # - { os: windows-latest, py: "3.7" } # - { os: macOS-latest, py: "3.7" } # - { os: ubuntu-latest, py: "3.6" } - - { os: ubuntu-latest, py: "3.7" } - { os: ubuntu-latest, py: "3.8" } - { os: ubuntu-latest, py: "3.9" } - { os: ubuntu-latest, py: "3.10" } + - { os: ubuntu-latest, py: "3.11" } env: SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk steps: - name: CHECKOUT CODE - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: SETUP PYTHON - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.config.py }} - name: Install GDAL diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2f8c8c5..f779384 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,10 +7,10 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: "3.11" - name: Install dependencies run: | sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable -y diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index f9212d6..ae45065 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -4,28 +4,27 @@ name: pypi on: - release: - types: [created] + release: + types: [created] jobs: - deploy: + deploy: + runs-on: ubuntu-latest - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERS }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERS }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 364e040..6ae6760 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -8,29 +8,29 @@ on: name: Windows build jobs: - test-windows: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Install miniconda - uses: conda-incubator/setup-miniconda@v2 - with: - auto-activate-base: true - python-version: 3.9 - - 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: Discover typos with codespell - # run: codespell --skip="*.csv,*.geojson,*.json,*.js,*.html,*cff" --ignore-words-list="aci,acount,acounts,fallow,hart,hist,nd,ned,ois,wqs,watermask" - # - name: PKG-TEST - # run: | - # python -m unittest discover tests/ + test-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Install miniconda + uses: conda-incubator/setup-miniconda@v3 + with: + auto-activate-base: true + python-version: "3.11" + - 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: Discover typos with codespell + # run: codespell --skip="*.csv,*.geojson,*.json,*.js,*.html,*cff" --ignore-words-list="aci,acount,acounts,fallow,hart,hist,nd,ned,ois,wqs,watermask" + # - name: PKG-TEST + # run: | + # python -m unittest discover tests/