forked from sandialabs/pyapprox
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.83 KB
/
continuous-integration-workflow-docs.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
name: Build Docs Using Conda
on:
push:
branches: [master]
# branches: [master, devel]
workflow_dispatch:
# # schedule:
# # # * is a special character in YAML so you have to quote this string
# # - cron: '*/0 * * * *' # run once a day
jobs:
pyapprox_unit_tests:
name: Setup Pyapprox dependencies with conda
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# os: [ubuntu-latest]
python-version: [3.8, 3.9, '3.10', '3.11']
os: [ubuntu-latest, macos-latest]
# python-version: [3.7, 3.8] #3.8 currently fails due to numpy error
# solely experienced when using github actions ValueError:
# numpy.ndarray size changed, may indicate binary incompatibility.
# Expected 96 from C header, got 88 from PyObject
steps:
- uses: actions/checkout@v2
- name: Setup Miniconda with Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pyapprox-base
python-version: ${{ matrix.python-version }}
# channels: defaults,conda-forge
channels: defaults
environment-file: environment.yml
# use-only-tar-bz2: true
auto-update-conda: true
auto-activate-base: false
- name: Conda list
shell: bash -l {0} # - l {0} is needed to activate created env
run: |
conda list
conda env list
- name: Setup PyApprox
shell: bash -l {0}
run: |
pip install -e . --no-build-isolation
- name: Setup PyApprox Documentation
shell: bash -l {0}
run: |
pip install -e .[docs]
- name: Create PyApprox Documentation
shell: bash -l {0}
run: |
cd docs
make html SPHINXOPTS=-vvv