cad_to_dagmc icon indicating copy to clipboard operation
cad_to_dagmc copied to clipboard

add CI using pip and building package sfrom source

Open shimwell opened this issue 4 months ago • 0 comments

CI currently uses conda but we could make one with pip and cmake

here is a start


# This CI will launch a Docker image that contains all the dependencies required
# within that image the pytest test suite is run 
# container:
#       image: continuumio/miniconda3:23.3.1-0

name: CI with install

on:
  pull_request:
    branches:
      - main
    paths-ignore:
      - 'docs/**'
      - '.gitignore'
      - '*.md'
      - 'CITATION.cff'
      - 'LICENSE.txt'
      - 'readthedocs.yml'
  push:
    branches:
      - main

jobs:
  testing:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: install non pypi dependencies
        shell: bash
        run: |
          sudo apt-get --allow-releaseinfo-change update
          sudo apt-get update -y
          sudo apt-get upgrade -y
          sudo apt-get install -y libgl1-mesa-glx libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0
          sudo apt install python3
          sudo apt install python3-pip
          pip install cadquery
          pip install gmsh
          pip install pymoab
          'https://bitbucket.org/fathomteam/moab/'
          https://github.com/openmc-dev/openmc/blob/develop/Dockerfile
          python -m pip install .
          python -c "import cad_to_dagmc"
          # install openmc with dagmc and 
          python -m pip install .[tests]
          pytest tests -v
          cd examples
          python create_stp_files_for_examples.py
          python cadquery_assembly.py
          python cadquery_compound.py
          python cadquery_object_and_stp_file.py
          python cadquery_text.py
          python curved_cadquery_object_to_dagmc_surface_mesh.py
          python curved_cadquery_object_to_dagmc_volume_mesh.py
          python multiple_cadquery_objects.py
          python multiple_stp_files.py
          python single_stp_file_multiple_volumes.py
          python single_cadquery_object.py
          python single_stp_file.py

``

shimwell avatar Mar 03 '24 21:03 shimwell