-
Notifications
You must be signed in to change notification settings - Fork 18
68 lines (63 loc) · 2.05 KB
/
python-app-full.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
# This action is intended to run weekly on also testing versions of python
name: Python application test on many versions
on:
workflow_dispatch:
schedule:
- cron: '30 3 * * 0'
permissions:
contents: read
env:
PYTHONPATH: '/usr/local/lib'
jobs:
build:
timeout-minutes: 20
env:
PYTHONPATH: "/usr/local/lib/python${{matrix.pyv}}/site-packages"
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
pyv: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{matrix.pyv}}
uses: actions/setup-python@v5
with:
python-version: ${{matrix.pyv}}
- name: basic dependencies
run: |
sudo apt-get update
echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
sudo apt-get -y install libhdf5-103 xserver-xorg-core xserver-xorg-dev libx11-6 libgl1 libxcursor1 libglu1-mesa libxinerama1 libxft2
- name: setup a micromamba environment to get at openmc etc.
uses: mamba-org/setup-micromamba@v1
with:
environment-name: cad_to_openmc_Testing
create-args: >-
python=${{matrix.pyv}}
openmc=0.14.0=dagmc_mpi_openmpi*
ocp=7.7.2.1
cadquery=2.4.0
init-shell: bash
- name: Test OpenMC
run: openmc --version
shell: micromamba-shell {0}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 build pytest
grep -v cadq requirements.txt > reqs_cleaned.txt
pip install -r reqs_cleaned.txt
micromamba list
python -c "import gmsh"
shell: micromamba-shell {0}
- name: Build, pip-install, and test-import CAD_to_OpenMC with dependencies.
run: |
python -m build --sdist .
pip install --no-deps dist/cad_to_openmc*.tar.gz
python -c 'import CAD_to_OpenMC.assembly'
shell: micromamba-shell {0}
- name: Run Tests
run: |
pytest -v --debug=debuglog.log tests
shell: micromamba-shell {0}