Skip to content

Commit

Permalink
Remove docs build and replace it with ReadTheDocs CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Feb 7, 2024
1 parent a11a5f6 commit f16b0b1
Showing 1 changed file with 4 additions and 40 deletions.
44 changes: 4 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
NUMBA_BOUNDSCHECK: ${{ matrix.numba_boundscheck }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache conda
uses: actions/cache@v3
uses: actions/cache@v4
env:
# Increase this value to reset cache if ci/environment.yml has not changed
CACHE_NUMBER: 0
Expand All @@ -34,13 +34,13 @@ jobs:
key:
test-${{ matrix.os }}-conda-py${{ matrix.python }}-${{ env.CACHE_NUMBER }}-${{
hashFiles('ci/environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: sparse-dev
allow-softlinks: true
environment-file: ci/environment.yml
python-version: ${{ matrix.python }}
miniforge-variant: Mambaforge
miniforge-version: latest
use-only-tar-bz2: true
use-mamba: true
- name: Install package
Expand All @@ -56,42 +56,6 @@ jobs:
if: always()
with:
files: "**/test-*.xml"
docs:
defaults:
run:
shell: bash -el {0}
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Cache conda
uses: actions/cache@v3
env:
# Increase this value to reset cache if ci/environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
docs-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment.yml') }}
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: sparse-dev
allow-softlinks: true
environment-file: ci/environment.yml
python-version: '3.10'
miniforge-version: latest
use-only-tar-bz2: true
use-mamba: true
- name: Install package
run: |
pip install -e .[docs]
- name: Run tests
run: |
sphinx-build -W -b html docs/ _build/html
- uses: actions/upload-artifact@v1
with:
name: Documentation
path: _build/html
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
Expand Down

0 comments on commit f16b0b1

Please sign in to comment.