forked from Unidata/MetPy
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.19 KB
/
docs-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
name: Build Docs (Conda)
# We don't want pushes (or PRs) to gh-pages to kick anything off
on:
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
#
# Build our docs on macOS and Windows on Python 3.8 and 3.7, respectively.
#
Docs:
name: ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
include:
- python-version: 3.8
os: macOS
- python-version: 3.7
os: Windows
steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Install from Conda
uses: ./.github/actions/install-conda
with:
type: 'doc'
python-version: ${{ matrix.python-version }}
- name: Build docs
uses: ./.github/actions/build-docs
with:
key: ${{ matrix.os }}-${{ matrix.python-version }}