Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated workflows #48

Merged
merged 4 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .github/workflows/docs-build.yml

This file was deleted.

13 changes: 8 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,29 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --user --no-cache-dir Cython
pip install --user -r requirements.txt
pip install --user -r requirements_dev.txt
pip install .
- name: Discover typos with codespell
run: |
pip install codespell
codespell --skip="*.csv,*.geojson,*.json,*.js,*.html,*cff,./.git" --ignore-words-list="aci,acount,acounts,fallow,hart,hist,nd,ned,ois,wqs,watermask"
- name: PKG-TEST
run: |
python -m unittest discover tests/
- run: python -m pip install --upgrade pip
- run: pip install -r requirements_docs.txt
- run: mkdocs gh-deploy --force
6 changes: 0 additions & 6 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ jobs:
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
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,15 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.py }}
- name: Install GDAL
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir Cython
pip install --find-links=https://girder.github.io/large_image_wheels --no-cache GDAL
- 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 --user --no-cache-dir Cython
pip install --user -r requirements.txt
pip install --user -r requirements_dev.txt
pip install .
- name: PKG-TEST
run: |
python -m unittest discover tests/
python -m pytest tests/

33 changes: 2 additions & 31 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ on:
- main

name: Windows build
# jobs:
# test-windows:
# runs-on: windows-latest

jobs:
test-windows:
runs-on: ${{ matrix.os }}
Expand All @@ -28,36 +26,9 @@ jobs:
with:
auto-activate-base: true
python-version: ${{ matrix.python-version}}
- 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 .

# 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 .
pip install .
3 changes: 0 additions & 3 deletions docs/common.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/prosemble.md

This file was deleted.

5 changes: 2 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,5 @@ nav:
- Report Issues: https://github.com/naotoo1/prosemble/issues
- Examples:
- examples/intro.ipynb
- API Reference:
- prosemble module: prosemble.md
- common module: common.md
# - API Reference:
# - prosemble module: prosemble.md
3 changes: 2 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ tox
coverage
Sphinx
twine

autopep8==2.0.2
pytest==7.0.1
Loading