Skip to content

Commit

Permalink
Merge pull request #109 from volkamerlab/fix-docs-ci
Browse files Browse the repository at this point in the history
Fix docs CI
  • Loading branch information
dominiquesydow authored May 15, 2022
2 parents fe042c1 + 8bd5391 commit 137a901
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 40 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,36 +131,3 @@ jobs:
shell: bash
run: |
flake8-nb --config setup.cfg docs/tutorials/*ipynb
docs:
runs-on: ubuntu-latest
env:
CI_OS: ubuntu-latest
PACKAGE: "kissim"
PYVER: "3.7"
steps:
- name: Checkout the code
uses: actions/checkout@v2
# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
environment-file: devtools/conda-envs/test_env.yaml
channels: conda-forge,defaults,bioconda
activate-environment: test
auto-update-conda: true
auto-activate-base: false
show-channel-urls: true
# mamba-version: "*"
- name: Install package
shell: bash -l {0}
run: |
python -m pip install . --no-deps
conda list
- name: Run sphinx
shell: bash -l {0}
run: |
cd docs
make clean
SPHINXOPTS="-W -T --keep-going" make html
50 changes: 50 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Docs

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
# Run a cron job once weekly on Tuesday
- cron: "0 0 * * TUE"

jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.7"
mamba-version: "*"
activate-environment: test
channel-priority: true
environment-file: devtools/conda-envs/test_env.yaml
auto-activate-base: false

- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Install package
shell: bash -l {0}
run: |
pip install . --no-deps -vv
- name: Environment Information
shell: bash -l {0}
run: |
conda info --all
conda list
- name: Run Sphinx
shell: bash -l {0}
run: |
cd docs
make clean
SPHINXOPTS="-j2 -T --keep-going" make html
13 changes: 6 additions & 7 deletions readthedocs.yml → .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

version: 2

build:
image: latest
# Default
formats: []

python:
version: 3.8
install:
- method: pip
path: .
build:
os: "ubuntu-20.04"
tools:
python: "mambaforge-4.10"

conda:
environment: devtools/conda-envs/test_env.yaml

0 comments on commit 137a901

Please sign in to comment.