-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v3.2' of https://github.com/Loop3D/map2loop into fix--s…
…ome-actions-not-appearing
- Loading branch information
Showing
3 changed files
with
24 additions
and
12 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
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,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" |