Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Dec 16, 2024
1 parent ac97bf2 commit af46a2f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Test Conda Build and Import


on:
push:
workflow_dispatch:

jobs:
test-conda-build:
name: Test Conda Build and Import
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ${{ fromJSON(vars.BUILD_OS)}}
python-version: ${{ fromJSON(vars.PYTHON_VERSIONS)}}

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -24,9 +28,8 @@ jobs:
conda install conda-build -y
conda build conda -c conda-forge -c loop3d
- name: Create environment and install package
- name: Create environment and install map2loop
run: |
conda install -y --use-local $(conda build conda --output)
- name: Test import
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test_pip_build_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test Pip Installation and Import

on:
push:
workflow_dispatch:

jobs:
test-pip-install:
name: Test Pip Installation and Import
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install build tools
run: |
python -m pip install --upgrade pip setuptools wheel build
- name: Build package
run: |
python -m build
- name: Install package
run: |
python -m pip install dist/*.whl
- name: Test import
run: |
python -c "import map2loop"

0 comments on commit af46a2f

Please sign in to comment.