-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.26 KB
/
Copy pathpython_conda_build_test.yml
File metadata and controls
52 lines (41 loc) · 1.26 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
44
45
46
47
48
49
50
51
52
## Workflow to build dependencies with conda / install locally with pip
name: conda + pip
on:
push
jobs:
build_and_test:
name: Build test (${{matrix.os}}, py ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'macos-latest', 'ubuntu-latest' ]
python-version: [ '3.7' ]
# exclude:
# - os: ubuntu-latest
# python-version: '2.7'
# - os: macos-latest
# python-version: '2.7'
steps:
- uses: actions/checkout@v2
- uses: goanpeca/setup-miniconda@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies with conda
shell: bash -l {0}
run: |
conda install pip
conda install -c conda-forge compilers numpy scipy sympy
conda install -c conda-forge petsc4py petsc mpi4py h5py
conda install -c conda-forge pint
conda install -c underworldcode stripy
conda install pytest
- name: Install (self)
shell: bash -l {0}
run: |
python --version
pip install -e .
- name: Test with pytest
shell: bash -l {0}
run: |
pytest