-
Notifications
You must be signed in to change notification settings - Fork 6
116 lines (96 loc) · 2.94 KB
/
ci_with_install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# 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
# - uses: conda-incubator/setup-miniconda@v2
- name: install non pypi dependencies
shell: bash
run: |
wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3.sh -b -p "${HOME}/conda"
source "${HOME}/conda/etc/profile.d/conda.sh"
source "${HOME}/conda/etc/profile.d/mamba.sh"
apt-get --allow-releaseinfo-change update
apt-get update -y
apt-get upgrade -y
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
mamba activate
mamba install -y -c cadquery -c conda-forge moab gmsh python-gmsh cadquery=master
- name: install package
run: |
python -m pip install --upgrade pip
python -m pip install .
python -c "import cad_to_dagmc"
mamba install -y -c conda-forge "openmc=0.13.3=dagmc*nompi*"
- name: run examples
run: |
cd examples
python create_stp_files_for_examples.py
- name: run examples
run: |
cd examples
python cadquery_assembly.py
- name: run examples
run: |
cd examples
python cadquery_compound.py
- name: run examples
run: |
cd examples
python cadquery_object_and_stp_file.py
- name: run examples
run: |
cd examples
python cadquery_text.py
- name: run examples 1
run: |
cd examples
python curved_cadquery_object.py
- name: run examples 2
run: |
cd examples
python multiple_cadquery_objects.py
- name: run examples 3
run: |
cd examples
python multiple_stp_files.py
- name: run examples 4
run: |
cd examples
python single_stp_file_multiple_volumes.py
- name: run examples 5
run: |
cd examples
- name: run examples 6
run: |
cd examples
python single_cadquery_object.py
- name: run examples 7
run: |
cd examples
python single_stp_file.py
- name: Run pytest
run: |
python -m pip install .[tests]
pytest tests -v