-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (76 loc) · 2.54 KB
/
ci-fenics.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: FEniCS
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
- name: Conda info
shell: bash -l {0}
run: |
conda info
which python
- name: Conda install FEniCS
shell: bash -l {0}
run: |
conda config --set always_yes yes
conda config --add channels conda-forge
conda create -n fenicsproject -c conda-forge fenics
conda activate fenicsproject
conda install libgcc gmp
which python
python -c "from dolfin import *"
python -c "from fenics import *"
- name: Install dependencies
shell: bash -l {0}
run: |
conda activate fenicsproject
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install pytest-cov
python -m pip install pytest-check
python -m pip install coveralls
python -m pip install fdm
python -m pip install git+https://github.com/dolfin-adjoint/pyadjoint.git@master
python -m pip install git+https://github.com/IvanYashchuk/fecr.git@master
# Julia Tasks
- uses: julia-actions/setup-julia@v1
with:
version: 1.6.0-rc3
arch: x64
- name: Julia info
shell: bash -l {0}
run: |
julia -e 'using InteractiveUtils; versioninfo()'
- uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
env:
PYTHON: /usr/share/miniconda/envs/fenicsproject/bin/python # this sets the Python binary directly to build PyCall
# - uses: julia-actions/julia-runtest@v1
- name: Run Julia tests
shell: bash -l {0}
run: |
conda activate fenicsproject
julia --color=yes --check-bounds=yes --project='@.' -e 'using Pkg; Pkg.test(coverage=true)'
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info