Skip to content

Define table specifications #529

Define table specifications

Define table specifications #529

Workflow file for this run

name: CI (pip)
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
tests_core:
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
name: "Core, Python ${{ matrix.python-version }}, ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install package (without extra)
run: python -m pip install -e .
- name: Install some testing dependencies (hard-coded)
run: python -m pip install pytest devtools jsonschema requests wget
- name: Cache Zenodo data
id: cache-zenodo-data
uses: actions/cache@v3
with:
path: tests/data/
key: zenodo-data
- name: Download Zenodo data
if: steps.cache-zenodo-data.outputs.cache-hit != 'true'
run: bash tests/data/download_zenodo_data.sh
- name: Test core library with pytest
run: pytest tests --ignore tests/tasks
tests_tasks:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
name: "Tasks, Python ${{ matrix.python-version }}, ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install package (with fractal-tasks extra)
run: python -m pip install -e .[fractal-tasks]
- name: Install some testing dependencies (hard-coded)
run: python -m pip install pytest devtools jsonschema requests wget
- name: Cache Zenodo data
id: cache-zenodo-data
uses: actions/cache@v3
with:
path: tests/data/
key: zenodo-data
- name: Download Zenodo data
if: steps.cache-zenodo-data.outputs.cache-hit != 'true'
run: bash tests/data/download_zenodo_data.sh
- name: Test tasks with pytest
run: pytest tests tests/tasks