Skip to content

Commit

Permalink
build: merged initial fix for #84
Browse files Browse the repository at this point in the history
  • Loading branch information
JanssenBrm committed Aug 21, 2023
1 parent e7d82a8 commit bfc2795
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 36 deletions.
68 changes: 33 additions & 35 deletions .github/workflows/sphinx2ghpages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Based on https://github.com/soxofaan/github-actions-sphinx2ghpages

name: Sphinx Documentation to GitHub Pages

on:
Expand All @@ -10,36 +8,36 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install dependencies (including Sphinx and related)
run: |
python -m pip install --upgrade pip
# Workaround for vam.whittaker installation issue https://github.com/WFP-VAM/vam.whittaker/issues/4
python -m pip install numpy==1.23.5 cython furo
python -m pip install .[dev]
- name: Sphinx build
run: python -m sphinx -b html docs/source docs/build

- name: Commit documentation in gh-pages branch
run: |
cd docs/build
git init -b gh-pages
touch .nojekyll
git config --local user.name "GitHub Actions Bot"
git config --local user.email "actions@github.com"
git add .
git commit -m "Update documentation"
- name: Push gh-pages branch
run: |
cd docs/build
git push --force "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}" gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Install dependencies (including Sphinx and related)
run: |
python -m pip install --upgrade pip
# Workaround for vam.whittaker installation issue https://github.com/WFP-VAM/vam.whittaker/issues/4
python -m pip install numpy==1.23.5 cython furo
python -m pip install .[dev]
- name: Sphinx build
run: python -m sphinx -b html docs/source docs/build

- name: Commit documentation in gh-pages branch
run: |
cd docs/build
git init -b gh-pages
touch .nojekyll
git config --local user.name "GitHub Actions Bot"
git config --local user.email "actions@github.com"
git add .
git commit -m "Update documentation"
- name: Push gh-pages branch
run: |
cd docs/build
git push --force "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}" gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools>=42"]
requires = ["setuptools>=42", "wheel", "numpy==1.23.5"]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions src/fusets/_phenolopy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# phenolopy
# flake8: noqa
'''
COPIED: this library is not yet packaged and distributed!
Expand Down
2 changes: 2 additions & 0 deletions tests/test_ccdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import numpy as np
import numpy.testing
import pytest
import requests
import xarray
from numpy.testing import assert_allclose
Expand Down Expand Up @@ -32,6 +33,7 @@ def test_fit_simple_harmonics_exact(harmonic_timeseries):
assert_allclose(coefficients, [5000,5,600,200],atol=3)


@pytest.mark.skip(reason="See https://github.com/Open-EO/FuseTS/issues/84#issuecomment-1600702434")
def test_ccdc_change_detection(harmonic_timeseries):

breaks = ccdc_change_detection(harmonic_timeseries)
Expand Down

0 comments on commit bfc2795

Please sign in to comment.