Skip to content

Tests (ubuntu, serial) #1456

Tests (ubuntu, serial)

Tests (ubuntu, serial) #1456

Workflow file for this run

name: Tests (ubuntu, serial)
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '17 22 * * *'
jobs:
serial_tests:
name: Test (py=${{ matrix.python-version}}, ubuntu-latest)
runs-on: ubuntu-latest
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/