Skip to content

Commit

Permalink
Merge branch 'v3.2' of https://github.com/Loop3D/map2loop into fix--s…
Browse files Browse the repository at this point in the history
…ome-actions-not-appearing
  • Loading branch information
AngRodrigues committed Dec 16, 2024
2 parents 1f3b184 + 275ed33 commit c4cbba8
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,13 +1,12 @@
name: Publish Conda Package

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 c4cbba8

Please sign in to comment.