Bump actions/download-artifact from 6 to 7 #397
Workflow file for this run
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: "unit_tests" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.type }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| branches: | |
| - "*" | |
| jobs: | |
| # Run unit tests | |
| test_pip: | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash -e {0} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| python-version: "3.10" | |
| - os: ubuntu-latest | |
| python-version: "3.14" | |
| - os: macos-15-intel # Intel | |
| python-version: "3.13" | |
| - os: macos-latest # arm64 | |
| python-version: "3.14" | |
| - os: windows-latest | |
| python-version: "3.14" | |
| env: | |
| TZ: Europe/Berlin | |
| FORCE_COLOR: true | |
| DISPLAY: ":99.0" | |
| OPENBLAS_NUM_THREADS: "1" | |
| PYTHONUNBUFFERED: "1" | |
| steps: | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/checkout@v6 | |
| - uses: pyvista/setup-headless-display-action@main | |
| with: | |
| qt: true | |
| pyvista: false | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| pip install --upgrade --upgrade-strategy eager .[test] | |
| - name: Display versions and environment information | |
| run: | | |
| echo $TZ | |
| date | |
| python --version | |
| which python | |
| - run: pip install -e . | |
| - run: python -c "import pybispectra; import mne; print(f'PyBispectra {pybispectra.__version__}\n'); mne.sys_info()" | |
| - name: Download testing data | |
| run: python -c "from pybispectra.utils import DATASETS, get_example_data_paths; (get_example_data_paths(data) for data in DATASETS.keys())" | |
| - name: Run pytest | |
| run: python -m coverage run && coverage report | |
| test_conda: | |
| timeout-minutes: 90 | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -el {0} | |
| env: | |
| MKL_NUM_THREADS: '1' | |
| PYTHONUNBUFFERED: '1' | |
| PYTHON_VERSION: '3.13' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pyvista/setup-headless-display-action@main | |
| with: | |
| qt: true | |
| pyvista: false | |
| - uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment.yml | |
| create-args: >- # beware the >- instead of |, we don't split on newlines but on spaces | |
| python=${{ env.PYTHON_VERSION }} | |
| - name: Install package and test dependencies | |
| run: | | |
| pip install -e . | |
| pip install .[test] | |
| - name: Display versions and environment information | |
| run: python -c "import pybispectra; import mne; print(f'PyBispectra {pybispectra.__version__}\n'); mne.sys_info()" | |
| - name: Download testing data | |
| run: python -c "from pybispectra.utils import DATASETS, get_example_data_paths; (get_example_data_paths(data) for data in DATASETS.keys())" | |
| - name: Run pytest | |
| run: python -m coverage run && coverage report | |
| test_old: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -e {0} | |
| env: | |
| TZ: Europe/Berlin | |
| FORCE_COLOR: true | |
| DISPLAY: ":99.0" | |
| OPENBLAS_NUM_THREADS: "1" | |
| PYTHONUNBUFFERED: "1" | |
| steps: | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.10" | |
| - uses: actions/checkout@v6 | |
| - uses: pyvista/setup-headless-display-action@main | |
| with: | |
| qt: true | |
| pyvista: false | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| pip install --upgrade --upgrade-strategy eager .[test] | |
| - name: Display versions and environment information | |
| run: | | |
| echo $TZ | |
| date | |
| python --version | |
| which python | |
| - run: | | |
| pip install -e . --no-deps | |
| pip install -r tools/requirements_old.txt | |
| - run: python -c "import pybispectra; import mne; print(f'PyBispectra {pybispectra.__version__}\n'); mne.sys_info()" | |
| - name: Download testing data | |
| run: python -c "from pybispectra.utils import DATASETS, get_example_data_paths; (get_example_data_paths(data) for data in DATASETS.keys())" | |
| - name: Run pytest | |
| run: python -m coverage run && coverage report |