Skip to content

Commit

Permalink
ci add conda build install workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Dec 16, 2024
1 parent 11eb69d commit af82c06
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/test_conda_build_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,27 @@ jobs:
test-conda-build:
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 af82c06

Please sign in to comment.