-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (37 loc) · 1.48 KB
/
python-app.yml
File metadata and controls
43 lines (37 loc) · 1.48 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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
CC: gcc-10
CXX: g++-10
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get install -y libopenblas-dev liblapack-dev graphviz libgraphviz-dev ninja-build
sudo apt-get -y install mpich
python -m pip install --upgrade pip
pip install flake8 pytest pyyaml scikit-build
python3 -m pip install git+https://github.com/FEniCS/ufl.git
python3 -m pip install git+https://github.com/FEniCS/basix.git
python3 -m pip install git+https://github.com/FEniCS/ffcx.git
python3 -m pip install pyyaml
- name: Run local assembly
run: |
python run.py --form_compiler=ffcx --scalar_type=double --action --global_size=10000000 --degree 5 --problem=Mass --nrepeats 5 --cell_type=hexahedron
python run.py --form_compiler=ffcx --scalar_type=double --action --global_size=10000000 --degree 5 --problem=Mass --nrepeats 5 --cell_type=tetrahedron
cat output/Mass.txt