-
-
Notifications
You must be signed in to change notification settings - Fork 553
47 lines (39 loc) · 1.03 KB
/
ci.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
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
build-river:
strategy:
fail-fast: false
matrix:
python: [3.9, "3.10", "3.11"]
os: [ubuntu-latest, macos-latest]
uses: ./.github/workflows/build-river.yml
with:
python: ${{ matrix.python }}
os: ${{ matrix.os }}
unit-tests:
needs: build-river
strategy:
fail-fast: false
matrix:
python: [3.9, "3.10", "3.11"]
os: [ubuntu-latest, macos-latest]
uses: ./.github/workflows/unit-tests.yml
with:
python: ${{ matrix.python }}
os: ${{ matrix.os }}
dev-docs:
if: github.event_name == 'push'
needs: unit-tests # The workflow will actually update docs, so it's best to wait for unit tests too.
uses: ./.github/workflows/docs.yml
secrets: inherit
branch-docs:
if: github.event_name == 'pull_request'
needs: build-river # The workflow will only build docs, so no need to wait for unit tests.
uses: ./.github/workflows/docs.yml