-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.24 KB
/
python-package-conda.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
name: FEniCS_tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
- name: Conda info
shell: bash -l {0}
run: |
conda info
which python
- name: Mamba install FEniCS
shell: bash -l {0}
run: |
conda config --set always_yes yes
conda config --add channels conda-forge
mamba create -n fenicsproject -c conda-forge fenics
conda activate fenicsproject
which python
python -c "from dolfin import *"
- name: Install dependencies
shell: bash -l {0}
run: |
conda activate fenicsproject
python -m pip install --upgrade pip
python -m pip install pytest
- name: Test with pytest
shell: bash -l {0}
run: |
conda activate fenicsproject
python -m pytest tests -vvv