-
Notifications
You must be signed in to change notification settings - Fork 416
92 lines (81 loc) · 2.25 KB
/
unstable-builds.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
91
92
name: Unstable Builds
on:
workflow_call:
outputs:
tests_result:
description: "Result from running tests"
value: ${{ jobs.Tests.outputs.result }}
docs_result:
description: "Result from running docs"
value: ${{ jobs.Docs.outputs.result }}
jobs:
Tests:
runs-on: ubuntu-20.04
outputs:
result: ${{ steps.tests.outcome }}
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 150
fetch-tags: true
- name: Assemble test requirements
run: |
echo git+https://github.com/hgrecco/pint@master#egg=pint >> ci/test_requirements.txt
echo git+https://github.com/pydata/xarray@main#egg=xarray >> ci/test_requirements.txt
- name: Install using PyPI
uses: ./.github/actions/install-pypi
with:
need-extras: true
type: test
version-file: Prerelease
python-version: 3.12
- name: Run tests
id: tests
uses: ./.github/actions/run-tests
with:
run-doctests: false
key: nightly
upload-coverage: false
- name: Upload test log
if: failure()
uses: actions/upload-artifact@v3
with:
name: log-nightly-tests
path: tests-nightly.log
retention-days: 5
Docs:
runs-on: ubuntu-20.04
outputs:
result: ${{ steps.build.outcome }}
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 150
fetch-tags: true
- name: Assemble doc requirements
run: |
echo git+https://github.com/hgrecco/pint@master#egg=pint >> ci/doc_requirements.txt
echo git+https://github.com/pydata/xarray@main#egg=xarray >> ci/doc_requirements.txt
- name: Install using PyPI
uses: ./.github/actions/install-pypi
with:
type: doc
version-file: Prerelease
python-version: 3.12
- name: Build docs
id: build
uses: ./.github/actions/build-docs
with:
run-linkchecker: true
key: nightly
- name: Upload build log
if: failure()
uses: actions/upload-artifact@v3
with:
name: log-nightly-docs
path: |
build.log
linkchecker.log
retention-days: 5