Tests (macos, serial) #855
This file contains 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: 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/ | |