-
Notifications
You must be signed in to change notification settings - Fork 15
34 lines (31 loc) · 991 Bytes
/
main.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
# Regular QA workflow for main and release branchs
name: Test
on:
push:
branches:
- main
- 'v*'
jobs:
code-quality:
uses: ./.github/workflows/code-quality.yml
unit-tests:
uses: ./.github/workflows/unit-tests.yml
needs: [code-quality]
notebook-examples:
uses: ./.github/workflows/notebook-examples.yml
needs: [code-quality]
examples-artifact:
uses: ./.github/workflows/examples-artifact.yml
needs: [code-quality]
trigger-rtd-build:
runs-on: ubuntu-latest
# Job must be completed by the time RTD sees it
needs: [code-quality,unit-tests,notebook-examples,examples-artifact]
steps:
- name: Trigger RTD build
env:
RTD_HOOK_TOKEN: ${{ secrets.RTD_HOOK_TOKEN }}
run: |
curl -X POST -d "branches=${{ github.ref_name }}" -d "token=$RTD_HOOK_TOKEN" \
-d "default_branch=main" \
https://readthedocs.com/api/v2/webhook/gurobi-optimization-gurobipy-pandas/11030/