-
Notifications
You must be signed in to change notification settings - Fork 6
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 #72 from valentynbez/main
fix: compilation
- Loading branch information
Showing
3 changed files
with
48 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
# This workflow automatically generates the Sphinx documentation required for | ||
# GitHub pages. Executed when main is pushed to. | ||
name: Documentation update | ||
on: | ||
push: | ||
branches: main | ||
workflow_dispatch: | ||
# # This workflow automatically generates the Sphinx documentation required for | ||
# # GitHub pages. Executed when main is pushed to. | ||
# name: Documentation update | ||
# on: | ||
# push: | ||
# branches: main | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: '3.8' | ||
|
||
# Checkout the main branch (docs will be built from this) | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: main | ||
# Checkout the documentation branch (docs will be pushed to this) | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: gh-pages | ||
path: gh-pages | ||
# # Checkout the main branch (docs will be built from this) | ||
# - uses: actions/checkout@v2 | ||
# with: | ||
# path: main | ||
# # Checkout the documentation branch (docs will be pushed to this) | ||
# - uses: actions/checkout@v2 | ||
# with: | ||
# ref: gh-pages | ||
# path: gh-pages | ||
|
||
- name: Install Sphinx requirements | ||
working-directory: ${{ github.workspace }}/main/docs | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y pandoc | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
- name: Build documentation | ||
working-directory: ${{ github.workspace }}/main/docs | ||
run: make html | ||
# - name: Install Sphinx requirements | ||
# working-directory: ${{ github.workspace }}/main/docs | ||
# run: | | ||
# sudo apt-get update -y | ||
# sudo apt-get install -y pandoc | ||
# python -m pip install --upgrade pip | ||
# python -m pip install -r requirements.txt | ||
# - name: Build documentation | ||
# working-directory: ${{ github.workspace }}/main/docs | ||
# run: make html | ||
|
||
- name: Move documentation | ||
run: | | ||
touch main/docs/build/html/.nojekyll | ||
cp -a main/docs/build/html/. gh-pages/ | ||
- name: Upload documentation | ||
working-directory: ${{ github.workspace }}/gh-pages | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add --all | ||
git diff-index --quiet HEAD || git commit -m "docs update" -a | ||
git push | ||
# - name: Move documentation | ||
# run: | | ||
# touch main/docs/build/html/.nojekyll | ||
# cp -a main/docs/build/html/. gh-pages/ | ||
# - name: Upload documentation | ||
# working-directory: ${{ github.workspace }}/gh-pages | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Action" | ||
# git add --all | ||
# git diff-index --quiet HEAD || git commit -m "docs update" -a | ||
# git push |
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,3 +1,5 @@ | ||
# distutils: define_macros=NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION | ||
|
||
cimport cython | ||
|
||
import numpy as np | ||
|
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