Skip to content

Commit

Permalink
📚 Fix Readthedocs PR builds (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell authored Nov 26, 2023
1 parent 5cb35c1 commit 2e48730
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
python-version: "3.8"
- uses: pre-commit/[email protected]

test:
tests:

name: Pytest (${{ matrix.platform }}, Python ${{ matrix.python-version }})

strategy:
fail-fast: false
Expand All @@ -46,3 +48,20 @@ jobs:
pip install -e .[testing]
- name: Run tests
run: pytest

# https://github.com/marketplace/actions/alls-green#why
check: # This job does nothing and is only used for the branch protection

if: always()

needs:
- pre-commit
- tests

runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.8"

python:
version: "3.8"
install:
- method: pip
path: .
Expand Down

0 comments on commit 2e48730

Please sign in to comment.