Skip to content

Commit

Permalink
Fix Docs CI (ethereum#2175)
Browse files Browse the repository at this point in the history
* Fix docs CI runs

* Cache doc dependencies

* Increase resource class
  • Loading branch information
kclowes authored Apr 19, 2024
1 parent fec63b8 commit d8df507
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
23 changes: 21 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,34 @@ windows-wheel-steps:
- .tox
key: cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}


docs: &docs
docker:
- image: common
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- run:
name: install dependencies
command: |
python -m pip install --upgrade pip
python -m pip install tox
- run:
name: install latexpdf dependencies
command: |
sudo apt-get update
sudo apt-get install latexmk tex-gyre texlive-fonts-extra
- run:
name: run tox
command: python -m tox run -r
- save_cache:
paths:
- .tox
- ~/.cache/pip
- ~/.local
key: cache-v1-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
resource_class: xlarge

jobs:
docs:
Expand Down
3 changes: 2 additions & 1 deletion docs/guides/understanding_the_mining_process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ zero value transfer transaction.
... block.number,
... block.header.mining_hash,
... block.header.difficulty,
... ) # doctest: +SKIP (takes too long for doctest to process)
... ) # doctest: +SKIP
... # (takes too long for doctest to process)

>>> chain.mine_block(mix_hash=mix_hash, nonce=nonce) # doctest: +SKIP
<ByzantiumBlock(#Block #1-0xe372..385c)>
1 change: 1 addition & 0 deletions newsfragments/2175.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure docs build on CI is running.

0 comments on commit d8df507

Please sign in to comment.