-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (48 loc) · 2.02 KB
/
test_linux.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
name: Linux Test IDAES-PSE Main
on: [workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
docker_image: ["eslickj/idaes-ext-centos7-test:latest"]
bin_platform: ["centos7"]
include:
- docker_image: eslickj/idaes-ext-centos7-test:latest
bin_platform: centos7
- docker_image: eslickj/ideas-ext-rocky8-test:latest
bin_platform: rocky8
- docker_image: eslickj/idaes-ext-ubuntu1804-test:latest
bin_platform: ubuntu1804
- docker_image: eslickj/idaes-ext-ubuntu2004-test:latest
bin_platform: ubuntu2004
- docker_image: eslickj/idaes-ext-ubuntu2204-test:latest
bin_platform: ubuntu2204
- docker_image: eslickj/idaes-ext-debian9-test:latest
bin_platform: debian9
- docker_image: eslickj/idaes-ext-debian10-test:latest
bin_platform: debian10
- docker_image: eslickj/idaes-ext-debian11-test:latest
bin_platform: debian11
steps:
- name: Start Docker Container
run: docker run --name test -d -i ${{ matrix.docker_image }} /bin/bash
- name: Install IDAES-PSE
run: |
docker exec test /bin/bash -c 'cd repo
eval "$(/root/miniconda/bin/conda shell.bash hook)"
git clone https://github.com/idaes/idaes-pse.git
cd idaes-pse
git checkout main
conda create -n idaes python=3.9 pip psutil
conda activate idaes
pip install -r requirements-dev.txt
idaes get-extensions --nochecksum --url https://github.com/IDAES/idaes-ext/releases/download/3.4.2/ --distro ${{ matrix.bin_platform }} --extra petsc'
- name: Test IDAES-PSE
run: |
docker exec test /bin/bash -c '
cd /repo/idaes-pse/idaes
eval "$(/root/miniconda/bin/conda shell.bash hook)"
conda activate idaes
pytest -m "not integration" --ignore=dmf --ignore=commands'