|
40 | 40 |
|
41 | 41 | - name: Type Checking (Pyright) |
42 | 42 | run: uv run make.py pyright |
43 | | - |
44 | | - # Prepare the Pull Request Payload artifact. If this fails, |
45 | | - # we fail silently using the `continue-on-error` option. It's |
46 | | - # nice if this succeeds, but if it fails for any reason, it |
47 | | - # does not mean that our lint-test checks failed. |
48 | | - - name: Prepare Pull Request Payload artifact |
49 | | - id: prepare-artifact |
50 | | - if: github.event_name == 'pull_request' |
51 | | - continue-on-error: true |
52 | | - run: cat $GITHUB_EVENT_PATH | jq '.pull_request' > pull_request_payload.json |
53 | | - |
54 | | - # This only makes sense if the previous step succeeded. To |
55 | | - # get the original outcome of the previous step before the |
56 | | - # `continue-on-error` conclusion is applied, we use the |
57 | | - # `.outcome` value. This step also fails silently. |
58 | | - - name: Upload a Build Artifact |
59 | | - if: steps.prepare-artifact.outcome == 'success' |
60 | | - continue-on-error: true |
61 | | - uses: actions/upload-artifact@v4 |
62 | | - with: |
63 | | - name: pull-request-payload |
64 | | - path: pull_request_payload.json |
65 | | - |
66 | | - builddoc: |
67 | | - |
68 | | - name: Documentation build test |
69 | | - runs-on: ${{ matrix.os }} |
70 | | - |
71 | | - strategy: |
72 | | - matrix: |
73 | | - os: [ubuntu-latest] |
74 | | - # python-version in must be kept in sync with .readthedocs.yaml |
75 | | - python-version: ['3.10'] # July 2024 | Match our contributor dev version; see pyproject.toml |
76 | | - architecture: ['x64'] |
77 | | - |
78 | | - steps: |
79 | | - - uses: actions/checkout@v4 |
80 | | - - name: setup |
81 | | - uses: actions/setup-python@v5 |
82 | | - with: |
83 | | - python-version: ${{ matrix.python-version }} |
84 | | - architecture: ${{ matrix.architecture }} |
85 | | - |
86 | | - - name: dependencies |
87 | | - run: | |
88 | | - python -m pip install -U pip wheel setuptools |
89 | | - - name: wheel |
90 | | - id: wheel |
91 | | - run: | |
92 | | - python -m pip install -e .[dev] |
93 | | - - name: build-docs |
94 | | - run: | |
95 | | - sphinx-build doc build -W |
96 | | - # Prepare the Pull Request Payload artifact. If this fails, |
97 | | - # we fail silently using the `continue-on-error` option. It's |
98 | | - # nice if this succeeds, but if it fails for any reason, it |
99 | | - # does not mean that our lint-test checks failed. |
100 | | - - name: Prepare Pull Request Payload artifact |
101 | | - id: prepare-artifact |
102 | | - if: always() && github.event_name == 'pull_request' |
103 | | - continue-on-error: true |
104 | | - run: cat $GITHUB_EVENT_PATH | jq '.pull_request' > pull_request_payload.json |
105 | | - |
106 | | - # This only makes sense if the previous step succeeded. To |
107 | | - # get the original outcome of the previous step before the |
108 | | - # `continue-on-error` conclusion is applied, we use the |
109 | | - # `.outcome` value. This step also fails silently. |
110 | | - - name: Upload a Build Artifact |
111 | | - if: always() && steps.prepare-artifact.outcome == 'success' |
112 | | - continue-on-error: true |
113 | | - uses: actions/upload-artifact@v4 |
114 | | - with: |
115 | | - name: pull-request-payload |
116 | | - path: pull_request_payload.json |
0 commit comments