diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1acf4dd..306bb5b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -22,44 +22,13 @@ jobs: matrix: version: - '1.11' - # python: - # - 3.9 - # - 3.12 os: - # - ubuntu-latest + - ubuntu-latest - macos-latest arch: - x64 steps: - uses: actions/checkout@v4 - # - name: Set up Python 🐍 ${{ matrix.python }} - # uses: actions/setup-python@v5 - # with: - # python-version: ${{ matrix.python }} - # - name: Create environment with micromamba πŸπŸ–€ - # uses: mamba-org/setup-micromamba@v1 - # with: - # micromamba-version: '2.0.2-2' - # environment-file: ./environment.yml - # environment-name: oggm_env # it is recommendable to add both name and yml file. - # init-shell: bash - # cache-environment: false - # cache-downloads: false - # # If necessary, we can include .condarc to configure environment - # # condarc-file: ./condarc.yml - # - name: Test creation of environment with micromamba πŸ”§πŸπŸ–€ - # run: | - # which python - # micromamba env export - # # shell: bash -el {0} - # - name: Update certifi - # run: | - # pip install --upgrade certifi - # # shell: bash -el {0} - # - name: Set ENV Variables for PyCall.jl 🐍 πŸ“ž - # run: | - # echo "PYTHON=/Users/runner/micromamba/envs/oggm_env/bin/python" >> "$GITHUB_ENV" - # # shell: bash -el {0} - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} @@ -68,24 +37,6 @@ jobs: run: | julia -e 'using NetworkOptions; println(NetworkOptions.bundled_ca_roots()); println(NetworkOptions.ca_roots_path()); println(NetworkOptions.ssh_key_path()); println(NetworkOptions.ssh_key_name()); println(NetworkOptions.ssh_pub_key_path())' # echo "SSL_CERT_PATH=$(julia -e 'using NetworkOptions; println(NetworkOptions.bundled_ca_roots())')" >> "$GITHUB_ENV" - # shell: bash -el {0} - # - name: Install dependencies on Ubuntu - # if: matrix.os == 'ubuntu-latest' - # run: | - # sudo apt-get update - # sudo apt-get install -y libxml2 libxml2-dev libspatialite7 libspatialite-dev - # echo "LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH" >> "$GITHUB_ENV" - # - name: Install dependencies on macOS - # if: matrix.os == 'macos-latest' - # run: | - # brew install libxml2 libspatialite - # echo "PKG_CONFIG_PATH=/opt/homebrew/opt/libxml2/lib/pkgconfig" >> "$GITHUB_ENV" - # - name: Check that new paths had been exported - # if: matrix.os == 'macos-latest' - # run: | - # echo $PYTHON - # echo $PKG_CONFIG_PATH - # echo $SSL_CERT_FILE - uses: julia-actions/cache@v1 with: cache-registries: "true" @@ -93,32 +44,15 @@ jobs: - name: Build Julia packages in Ubuntu uses: julia-actions/julia-buildpkg@v1 if: matrix.os == 'ubuntu-latest' - # env: - # PYTHON : /Users/runner/micromamba/envs/oggm_env/bin/python - # # The SSL certificate path can be readed from the action "Check Julia SSL certifications" - # # JULIA_SSL_CA_ROOTS_PATH: /etc/ssl/certs/ca-certificates.crt - # SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt - name: Build Julia packages in MacOS uses: julia-actions/julia-buildpkg@v1 if: matrix.os == 'macos-latest' - # env: - # PYTHON : /Users/runner/micromamba/envs/oggm_env/bin/python - # JULIA_SSL_CA_ROOTS_PATH: /Users/runner/hostedtoolcache/julia/1.11.1/x64/share/julia/cert.pem - # SSL_CERT_FILE: /Users/runner/hostedtoolcache/julia/1.11.1/x64/share/julia/cert.pem - name: Run tests in Ubuntu uses: julia-actions/julia-runtest@v1 if: matrix.os == 'ubuntu-latest' - # env: - # PYTHON : /Users/runner/micromamba/envs/oggm_env/bin/python - # # JULIA_SSL_CA_ROOTS_PATH: /etc/ssl/certs/ca-certificates.crt - # SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt - name: Run tests in MacOS uses: julia-actions/julia-runtest@v1 if: matrix.os == 'macos-latest' - # env: - # PYTHON : /Users/runner/micromamba/envs/oggm_env/bin/python - # JULIA_SSL_CA_ROOTS_PATH: /Users/runner/hostedtoolcache/julia/1.11.1/x64/share/julia/cert.pem - # SSL_CERT_FILE: /Users/runner/hostedtoolcache/julia/1.11.1/x64/share/julia/cert.pem - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v4 with: diff --git a/CondaPkg.toml b/CondaPkg.toml deleted file mode 100644 index 8d0868a..0000000 --- a/CondaPkg.toml +++ /dev/null @@ -1,39 +0,0 @@ -[deps] -bottleneck = ">=1.3" -cartopy = ">=0.22" -configobj = ">=5.0" -dask = ">=2024.3" -gdal = ">=3.8" -geopandas = ">=0.14" -ipython = ">=8.22" -jupyter = ">=1.0" -jupyterlab = ">=4.1" -matplotlib = ">=3.8" -motionless = ">=1.3" -netcdf4 = ">=1.6" -numpy = "<2.0" -numpydoc = ">=1.6" -pandas = ">=2.2" -pip = ">=24.0" -pyproj = ">=3.6" -pytables = ">=3.9" -pytest = ">=8.1" -python = "<=3.12" -rioxarray = ">=0.15" -salem = ">=0.3" -scikit-image = ">=0.22" -scikit-learn = ">=1.4" -scipy = ">=1.12" -seaborn = ">=0.13" -shapely = ">=2.0" -xarray = ">=2024.2" - -[pip.deps] -oggm = "@ git+https://github.com/OGGM/oggm.git@9d173038862f36a21838034da07243bd189ef2d0" -certifi = "" -progressbar2 = ">=4.4" -joblib = ">=1.3" -MBSandbox = "@Β git+https://github.com/OGGM/massbalance-sandbox" - -[extras] -channels = ["conda-forge"]