diff --git a/.github/workflows/cron.yaml b/.github/workflows/cron.yaml new file mode 100644 index 0000000..cae5ec5 --- /dev/null +++ b/.github/workflows/cron.yaml @@ -0,0 +1,42 @@ +# Run a nightly test against unpinned conda environment +name: Cron + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + test: + name: ${{ matrix.CONDA_ENV }}-test + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + CONDA_ENV: [unpinned, upstream] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Miniconda + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + auto-activate-base: false + activate-environment: test_env + environment-file: ci/environment-${{ matrix.CONDA_ENV }}.yml + + - name: Development Install intake-xarray + shell: bash -l {0} + run: | + python -m pip install --no-deps -e . + conda list + + - name: Run Tests + shell: bash -l {0} + run: | + pytest --verbose --ignore=intake_xarray/tests/test_network.py + + - name: Run Tests Requiring Network Connection + shell: bash -l {0} + run: | + pytest --verbose intake_xarray/tests/test_network.py diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 1a8ef61..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,35 +0,0 @@ -# Based on bokeh appveyor set up -build: false - -platform: - - x64 - -environment: - matrix: - - MINICONDA: C:\Miniconda36-x64 - CONDA_ENV: py36 - - MINICONDA: C:\Miniconda36-x64 - CONDA_ENV: py36-defaults - -matrix: - allow_failures: - - CONDA_ENV: py36-defaults - - -skip_branch_with_pr: true -clone_depth: 5 -skip_tags: true - -init: - - cmd: set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%MINICONDA%\\Library\\bin;%PATH% - - cmd: echo %path% - -install: - - powershell .\\ci\\appveyor\\install.ps1 - - "conda env create -n test_env --file ./ci/environment-%CONDA_ENV%.yml" - - "activate test_env" - - "python setup.py install" - - "conda list" - -test_script: - - "pytest --verbose" diff --git a/ci/appveyor/build.ps1 b/ci/appveyor/build.ps1 deleted file mode 100644 index 5254910..0000000 --- a/ci/appveyor/build.ps1 +++ /dev/null @@ -1,7 +0,0 @@ -function build(){ - conda install -c conda-forge conda-build conda-verify jinja2 intake>=0.4.1 xarray>=0.11.0 zarr dask netcdf4 - conda list - conda build -c conda-forge ./conda -} - -build \ No newline at end of file diff --git a/ci/appveyor/install.ps1 b/ci/appveyor/install.ps1 deleted file mode 100644 index cd19c3a..0000000 --- a/ci/appveyor/install.ps1 +++ /dev/null @@ -1,5 +0,0 @@ -function install() { - conda config --set auto_update_conda off --set always_yes yes --set changeps1 no --set show_channel_urls true -} - -install \ No newline at end of file diff --git a/ci/appveyor/test.ps1 b/ci/appveyor/test.ps1 deleted file mode 100644 index ffe8d47..0000000 --- a/ci/appveyor/test.ps1 +++ /dev/null @@ -1,9 +0,0 @@ -function test() { - conda env create -n test_env --file ci/environment-py36.yml - source activate test_env - conda list - pip install --no-deps -e . - pytest --verbose -} - -test \ No newline at end of file diff --git a/ci/environment-unpinned.yml b/ci/environment-unpinned.yml new file mode 100644 index 0000000..980f8d5 --- /dev/null +++ b/ci/environment-unpinned.yml @@ -0,0 +1,22 @@ +name: test_env +channels: + - conda-forge +dependencies: + - python + - aiohttp + - boto3 + - flask + - h5netcdf + - intake + - netcdf4 + - pip + - pydap + - pytest + - rasterio + - s3fs + - scikit-image + - xarray + - zarr + - pip: + - rangehttpserver + - moto[s3] diff --git a/ci/travis/install.sh b/ci/travis/install.sh deleted file mode 100644 index 26ed4ea..0000000 --- a/ci/travis/install.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -set -e # exit on error - -echo "Configuring conda" -conda config --set auto_update_conda off --set always_yes yes --set changeps1 no --set show_channel_urls true diff --git a/ci/travis/test.sh b/ci/travis/test.sh deleted file mode 100755 index 5dd4be5..0000000 --- a/ci/travis/test.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -set -e # exit on error -set -x - -echo "Creating test env" -conda env create -n test_env --file ci/environment-${CONDA_ENV}.yml -source activate test_env -# dev versions -pip install git+https://github.com/intake/filesystem_spec --no-deps -pip install git+https://github.com/intake/intake --no-deps -conda list - -echo "Installing intake_xarray." -pip install --no-deps -e . - -echo "Running tests" -pytest --verbose