Move reqs into pyproject, remove setup.py #263
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
merge_group: | |
jobs: | |
test: | |
name: Build docs | |
runs-on: ubuntu-24.04 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Cache conda and dependencies | |
id: cache | |
uses: actions/[email protected] | |
env: | |
# Increase this to reset the cache if the key hasn't changed. | |
CACHE_NUM: 3 | |
with: | |
path: | | |
/usr/share/miniconda/envs/anaconda-client-env | |
~/osx-conda | |
~/.profile | |
key: conda-v${{ env.CACHE_NUM }}-${{ hashFiles('pyproject.toml') }} | |
- name: Install Conda | |
uses: conda-incubator/[email protected] | |
if: steps.cache.outputs.cache-hit != 'true' | |
with: | |
activate-environment: anaconda-client-env | |
python-version: "3.10" | |
channels: conda-forge | |
channel-priority: strict | |
auto-update-conda: true | |
- name: Install slim | |
if: steps.cache.outputs.cache-hit != 'true' | |
shell: bash -l {0} #We need a login shell to get conda | |
run: | | |
conda install --yes slim | |
- name: Install uv and pip deps | |
if: steps.cache.outputs.cache-hit != 'true' | |
shell: bash -l {0} | |
run: | | |
pip install uv | |
uv pip install --system -r pyproject.toml --extra docs | |
# Install current pyslim as editable to ensure we get the latest version | |
uv pip install --system -e . | |
# # Retaining commented block for next devel cycle | |
# - name: Build SLiM | |
# run: | | |
# git clone https://github.com/messerlab/SLiM.git | |
# cd SLiM | |
# mkdir -p Release | |
# cd Release | |
# cmake -D CMAKE_BUILD_TYPE=Release .. | |
# make -j 2 | |
- name: Build docs | |
run: | | |
source ~/.profile | |
conda activate anaconda-client-env | |
export PATH=$PWD/SLiM/Release:$PATH | |
slim -v | |
pip list | |
cd docs && make | |