-
Notifications
You must be signed in to change notification settings - Fork 27
51 lines (48 loc) · 1.73 KB
/
Copy pathinstallation.yaml
File metadata and controls
51 lines (48 loc) · 1.73 KB
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
name: Installation
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
pip-install-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install package
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip check
- name: Import package modules
run: |
python -c "import EOSgenerators.download_compose, EOSgenerators.RMF_DDH"
python -c "import InferenceWorkflow.BayesianSampler, InferenceWorkflow.DDH_Likelihood"
python -c "import TOVsolver.main, postprocessing.Cornerplot"
conda-install-smoke:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: CompactObject
environment-file: environment.yml
miniforge-version: latest
use-mamba: true
- name: Install package without replacing Conda dependencies
run: |
python -m pip install --no-deps --no-build-isolation -e .
python -m pip check
- name: Verify the active environment and imports
run: |
python -c "import os, pathlib, sys; assert pathlib.Path(os.environ['CONDA_PREFIX']).resolve() == pathlib.Path(sys.prefix).resolve(); print(sys.executable)"
python -c "import EOSgenerators.download_compose, EOSgenerators.RMF_DDH"
python -c "import InferenceWorkflow.BayesianSampler, InferenceWorkflow.DDH_Likelihood"
python -c "import TOVsolver.main, postprocessing.Cornerplot"