Skip to content

Tests (macos, serial) #855

Tests (macos, serial)

Tests (macos, serial) #855

Workflow file for this run

name: Tests (macos, serial)
on:
workflow_dispatch:
schedule:
- cron: '17 0 * * *'
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@v4.2.2
- name: Create conda environment
uses: conda-incubator/setup-miniconda@v3
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/