forked from NRCan/geo-deep-learning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NRCan#566 from valhassan/565-feature-geo-inference…
…-integration 565 feature geo inference integration
- Loading branch information
Showing
22 changed files
with
166 additions
and
787 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,22 @@ | ||
name: GitHub Actions Unit Tests | ||
name: tests | ||
on: [push, pull_request] | ||
jobs: | ||
clean-and-deploy-env: | ||
runs-on: ubuntu-latest | ||
env: | ||
LD_LIBRARY_PATH: "/opt/conda/lib" | ||
run-tests: | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
- name: checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: create environment | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
# this might remove tools that are actually needed, | ||
# if set to "true" but frees about 6 GB | ||
tool-cache: false | ||
|
||
# all of these default to true, but feel free to set to | ||
# "false" if necessary for your workflow | ||
android: true | ||
dotnet: false | ||
haskell: false | ||
large-packages: false | ||
docker-images: false | ||
swap-storage: false | ||
|
||
- name: Update the environment | ||
mamba-version: "*" | ||
activate-environment: geo_deep_env | ||
environment-file: environment.yml | ||
|
||
- name: test with pytest | ||
run: | | ||
sudo apt-get update \ | ||
&& sudo apt-get install -y --no-install-recommends git wget unzip bzip2 build-essential | ||
- name: Install Mamba | ||
run: | | ||
sudo wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh -O /tmp/mamba.sh && \ | ||
/bin/bash /tmp/mamba.sh -b -p /opt/conda && \ | ||
sudo rm -rf /tmp/* && \ | ||
sudo apt-get clean && \ | ||
sudo rm -rf /var/lib/apt/lists/* | ||
- name: Set system variables | ||
run: | | ||
echo '/opt/conda' >> $GITHUB_PATH | ||
- name: Check if Custom Paths are Added | ||
run: | | ||
echo "$PATH" | ||
echo "$LD_LIBRARY_PATH" | ||
- name: Install pyenv | ||
run: | | ||
pip install pipenv | ||
pip install pytest | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
/opt/conda/bin/mamba env create -f environment.yml | ||
echo '/opt/conda/envs/geo_deep_env/bin' >> $GITHUB_PATH | ||
- name: Test with pytest | ||
run: | | ||
pipenv run pytest tests/ | ||
pytest tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,16 @@ | ||
name: geo_deep_env | ||
channels: | ||
- pytorch | ||
- conda-forge | ||
dependencies: | ||
- coverage>=6.3.1 | ||
- docker-py>=4.4.4 | ||
- geopandas>=0.10.2 | ||
- hydra-core>=1.2.0 | ||
- python==3.11.5 | ||
- pip | ||
- pynvml>=11.0 | ||
- gdal | ||
- pystac>=0.3.0 | ||
- pytest>=7.1 | ||
- python>=3.10 | ||
- pytorch==1.12 | ||
- mkl<=2024.0 | ||
- rich>=11.1 | ||
- ruamel_yaml>=0.15 | ||
- scikit-image>=0.18 | ||
- torchgeo>=0.3 | ||
- torchvision>=0.12 | ||
- pip: | ||
- geo-inference>=2.0.7 | ||
- hydra-colorlog>=1.1.0 | ||
- hydra-optuna-sweeper>=1.1.0 | ||
- ttach>=0.0.3 | ||
- mlflow>=1.2 # causes env solving to hang if not with pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.