Merge pull request #1060 from fractal-analytics-platform/zensical #1774
This file contains hidden or 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: CI (pip) | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| schedule: | |
| - cron: "0 23 * * 2" | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04, macos-latest] | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| name: "Tests, Python ${{ matrix.python-version }}, ${{ matrix.os }}" | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Install package | |
| run: python -m pip install -e . | |
| - name: Install some testing dependencies (hard-coded) | |
| run: python -m pip install pytest devtools jsonschema requests wget pooch pytest-cov | |
| - name: Ngio Cache | |
| id: cache-ngio-zenodo-folder | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: tests/data/ngio_zenodo | |
| key: ngio-zenodo-cache | |
| - name: Run tests with pytest | |
| run: python -m pytest tests -s --log-cli-level info |