Skip to content

Commit

Permalink
Fix: update gdal install in actions (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues authored Dec 16, 2024
1 parent f1888ec commit 275ed33
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/linting_and_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ jobs:
run: |
conda update -n base -c defaults conda -y
conda install -n base conda-libmamba-solver -c conda-forge -y
conda install -c conda-forge gdal -y
conda install -c conda-forge -c loop3d --file dependencies.txt -y
conda install gdal=3.8.4 pytest -y
conda install pytest -y
- name: Install map2loop
run: |
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/publish_conda.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
on:
push:
branches:
- master
workflow_dispatch:

push:
branches:
- master
workflow_dispatch:
jobs:

release-please:
runs-on: ubuntu-24.04
steps:
Expand Down
22 changes: 17 additions & 5 deletions .github/workflows/test_conda_build_install.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
name: Test Conda Build and Import

on:
workflow_dispatch:
workflow_dispatch:

jobs:
test-conda-build:
name: Test Conda Build and Import
runs-on: ubuntu-24.04
steps:
# Step 1: Checkout the branch
- name: Checkout code
uses: actions/checkout@v4

# Step 2: Set up Conda
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.10 # Specify the Python version
python-version: 3.10

# Step 3: Install conda-build
- name: Install conda-build
run: conda install -y conda-build

- name: Build Conda package
run: conda-build .

- name: Create environment and install package
run: |
conda create -y -n test-env python=3.10
source activate test-env
conda install -y --use-local $(conda build . --output)
- name: Test import
run: |
source activate test-env
python -c "import map2loop"

0 comments on commit 275ed33

Please sign in to comment.