Skip to content

Commit

Permalink
Fix GH actions and readthedocs
Browse files Browse the repository at this point in the history
Conda has been removed and version.py does not work on GH actions.
  • Loading branch information
lumbric committed May 7, 2024
1 parent 1f54468 commit bde8ed0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
- name: Set up Git repository
uses: actions/checkout@v4

- name: Fetch all Git tags
# this is necessary for version.py because git describe does not work on a shallow clone:
# https://stackoverflow.com/q/66349002/859591
run: git fetch -a

- uses: actions/setup-python@v5
with:
python-version: '3.10'
Expand Down
15 changes: 6 additions & 9 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@

version: 2

build:
os: ubuntu-22.04
tools:
python: "mambaforge-22.9"

sphinx:
configuration: doc/conf.py

# Python requirements required to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
conda:
environment: env.yml
python:
install:
- method: pip
path: .
extra_requirements:
- doc

0 comments on commit bde8ed0

Please sign in to comment.