Skip to content

Commit 2e48730

Browse files
authored
📚 Fix Readthedocs PR builds (#38)
1 parent 5cb35c1 commit 2e48730

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
python-version: "3.8"
2222
- uses: pre-commit/[email protected]
2323

24-
test:
24+
tests:
25+
26+
name: Pytest (${{ matrix.platform }}, Python ${{ matrix.python-version }})
2527

2628
strategy:
2729
fail-fast: false
@@ -46,3 +48,20 @@ jobs:
4648
pip install -e .[testing]
4749
- name: Run tests
4850
run: pytest
51+
52+
# https://github.com/marketplace/actions/alls-green#why
53+
check: # This job does nothing and is only used for the branch protection
54+
55+
if: always()
56+
57+
needs:
58+
- pre-commit
59+
- tests
60+
61+
runs-on: ubuntu-latest
62+
63+
steps:
64+
- name: Decide whether the needed jobs succeeded or failed
65+
uses: re-actors/alls-green@release/v1
66+
with:
67+
jobs: ${{ toJSON(needs) }}

.readthedocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
version: 2
22

3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.8"
7+
38
python:
4-
version: "3.8"
59
install:
610
- method: pip
711
path: .

0 commit comments

Comments
 (0)