Skip to content

Tests (macos, serial) #889

Tests (macos, serial)

Tests (macos, serial) #889

Workflow file for this run

name: Tests (macos, serial)
on:
workflow_dispatch:
schedule:
- cron: '17 0 * * *'
permissions: read-all
jobs:
serial_tests:
name: Test (py=${{ matrix.python-version}}, macos-13)
runs-on: macos-13
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Create conda environment
uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3.1.1
with:
environment-file: .github/conda/mpich.yml
miniforge-version: latest
python-version: ${{ matrix.python-version }}
activate-environment: test
auto-activate-base: false
conda-remove-defaults: true
- name: Show conda info
run: conda info
- name: Show list of all installed packages
run: conda list
- name: Install package
run: |
pip install .[all]
- name: Run tests
env:
OMP_NUM_THREADS: 2
run: |
python3 -m pytest -vv tests/