diff --git a/.github/workflows/sphinx2ghpages.yml b/.github/workflows/sphinx2ghpages.yml index d031425..41d92dd 100644 --- a/.github/workflows/sphinx2ghpages.yml +++ b/.github/workflows/sphinx2ghpages.yml @@ -1,5 +1,3 @@ -# Based on https://github.com/soxofaan/github-actions-sphinx2ghpages - name: Sphinx Documentation to GitHub Pages on: @@ -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 }} diff --git a/pyproject.toml b/pyproject.toml index b0f0765..830c87b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools>=42"] +requires = ["setuptools>=42", "wheel", "numpy==1.23.5"] build-backend = "setuptools.build_meta" diff --git a/src/fusets/_phenolopy.py b/src/fusets/_phenolopy.py index 5be0488..902ae81 100644 --- a/src/fusets/_phenolopy.py +++ b/src/fusets/_phenolopy.py @@ -1,4 +1,5 @@ # phenolopy +# flake8: noqa ''' COPIED: this library is not yet packaged and distributed! diff --git a/tests/test_ccdc.py b/tests/test_ccdc.py index 3028009..b63b3fc 100644 --- a/tests/test_ccdc.py +++ b/tests/test_ccdc.py @@ -3,6 +3,7 @@ import numpy as np import numpy.testing +import pytest import requests import xarray from numpy.testing import assert_allclose @@ -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)