-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (45 loc) · 1.67 KB
/
python-package.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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on: push
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y pandoc pybind11-dev
sudo apt-get install -y --no-install-recommends software-properties-common
sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt-get update
sudo apt-get install -y --no-install-recommends fenics
pip3 install --upgrade pip
pip3 install pytest
pip3 install -r requirements.txt
pip3 install git+https://github.com/BAMresearch/fenics_helpers
pip3 install --user -e .
- name: Run
run: |
export PATH=/home/runner/.local/bin/:$PATH
doit
pytest
- name: deploy
if: github.ref == 'refs/heads/master'
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: website # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
dolfinx:
runs-on: ubuntu-20.04
container: dolfinx/dolfinx
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
pip3 install sympy
- name: run dolfinx example
run:
python3 examples/gradient_damagex.py