-
Notifications
You must be signed in to change notification settings - Fork 13
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 #17 from MerlinDumeur/cleanup
Cleanup
- Loading branch information
Showing
44 changed files
with
6,388 additions
and
751 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 |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
needs: linter-check | ||
strategy: | ||
fail-fast: false | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.10", "3.8"] | ||
|
@@ -54,17 +54,89 @@ jobs: | |
path: ~/conda_pkgs_dir | ||
key: | ||
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ | ||
hashFiles('etc/example-environment.yml') }} | ||
hashFiles('env.yml') }} | ||
- name: Setup python ${{ matrix.python-version }} with conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: env.yml | ||
environment-file: meta.yml | ||
use-only-tar-bz2: true | ||
- name: Testing | ||
run: | | ||
conda install -c conda-forge pytest pytest-xdist | ||
pip uninstall pymultifracs | ||
conda install -c conda-forge pytest pytest-xdist pytest-cov | ||
pip install -e . | ||
pytest -n auto -x | ||
pytest -n auto -x --cov=./ --cov-report=xml | ||
build-docs: | ||
if: github.repository == 'neurospin/pymultifracs' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Cache conda | ||
uses: actions/cache@v2 | ||
env: | ||
CACHE_NUMBER: 0 | ||
with: | ||
path: ~/conda_pkgs_dir | ||
key: | ||
doc-conda-${{ env.CACHE_NUMBER }}-${{ | ||
hashFiles('meta.yml') }} | ||
- name: Setup python with conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.11 | ||
environment-file: meta.yml | ||
use-only-tar-bz2: true | ||
- name: Build doc | ||
run: | | ||
conda install -c conda-forge sphinx numpydoc pydata-sphinx-theme | ||
pip install -e . | ||
cd doc | ||
make html | ||
upload-docs: | ||
if: github.repository == 'neurospin/pymultifracs' | ||
runs-on: ubuntu-latest | ||
needs: [build-docs] | ||
steps: | ||
- name: Archive artifact | ||
shell: sh | ||
if: runner.os == 'Linux' | ||
run: | | ||
tar \ | ||
--dereference --hard-dereference \ | ||
--directory doc/_build/ \ | ||
-cvf "$RUNNER_TEMP/artifact.tar" \ | ||
--exclude=.git \ | ||
--exclude=.github \ | ||
. | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: github-pages | ||
path: ${{ runner.temp }}/artifact.tar | ||
retention-days: 1 | ||
if-no-files-found: error | ||
|
||
deploy-docs: | ||
needs: upload-docs | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
# Deploy to the github-pages environment | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
# Specify runner + deployment step | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/[email protected] # or the latest "vX.X.X" version tag for this action | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
{{ fullname }} | ||
{{ underline }} | ||
{{ fullname | escape | underline }} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
||
.. autofunction:: {{ objname }} | ||
|
||
.. include:: {{ fullname }}.examples | ||
|
||
.. raw:: html | ||
|
||
<div style='clear:both'></div> |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: pymultifracs-doc | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python>=3.7 | ||
- numpy>=1.17.3 | ||
- scipy>=1.3.1 | ||
- pywavelets>=1.1.1 | ||
- seaborn>=0.9.0 | ||
- scikit-learn>=0.21.34 | ||
- statsmodels | ||
- sphinx | ||
- numpydoc | ||
- pydata-sphinx-theme | ||
- pip | ||
- pip: | ||
- recombinator |
File renamed without changes.
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,4 +9,3 @@ Contents | |
|
||
reference | ||
theory | ||
|
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.