-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2964 from jeromekelleher/compile-numpy2
Compile on numpy2
- Loading branch information
Showing
32 changed files
with
210 additions
and
296 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
PYTHON_VERSIONS=( | ||
cp312-cp312 | ||
cp311-cp311 | ||
cp310-cp310 | ||
cp39-cp39 | ||
cp38-cp38 | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,18 @@ on: | |
|
||
env: | ||
COMMIT_EMAIL: [email protected] | ||
DOXYGEN: true | ||
MAKE_TARGET: -C python | ||
OWNER: tskit-dev | ||
REPO: tskit | ||
REQUIREMENTS: python/requirements/CI-docs/requirements.txt | ||
APTGET: doxygen | ||
|
||
jobs: | ||
build-deploy-docs: | ||
name: Docs | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
@@ -28,33 +29,40 @@ jobs: | |
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install apt deps | ||
if: env.APTGET | ||
run: sudo apt-get install -y ${{env.APTGET}} | ||
- name: Setup Mambaforge | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
activate-environment: tskit-docs-env | ||
use-mamba: true | ||
|
||
- uses: actions/setup-python@v5 | ||
- name: Cache Conda env | ||
uses: actions/cache@v3 | ||
with: | ||
python-version: "3.10" | ||
cache: 'pip' | ||
path: ${{ env.CONDA }}/envs | ||
key: conda-${{ runner.os }}--${{ runner.arch }}--${{ hashFiles(env.REQUIREMENTS) }}-${{ env.CACHE_NUMBER }} | ||
env: | ||
CACHE_NUMBER: 0 | ||
id: cache | ||
|
||
- name: Create venv and install deps | ||
- name: Update environment | ||
run: | | ||
pip install --upgrade pip wheel | ||
pip install -r ${{env.REQUIREMENTS}} | ||
mamba install -y python=3.10 doxygen pip | ||
pip install -r ${{ env.REQUIREMENTS }} | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
||
- name: Build C module | ||
if: env.MAKE_TARGET | ||
run: | | ||
make $MAKE_TARGET | ||
run: make $MAKE_TARGET | ||
|
||
- name: Build Docs | ||
run: | | ||
make -C docs | ||
run: make -C docs | ||
|
||
- name: Trigger docs site rebuild | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
curl -X POST https://api.github.com/repos/tskit-dev/tskit-site/dispatches \ | ||
-H 'Accept: application/vnd.github.everest-preview+json' \ | ||
-u AdminBot-tskit:${{ secrets.ADMINBOT_TOKEN }} \ | ||
--data '{"event_type":"build-docs"}' | ||
--data '{"event_type":"build-docs"}' |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.