Skip to content

Tests (ubuntu, serial) #2630

Tests (ubuntu, serial)

Tests (ubuntu, serial) #2630

Workflow file for this run

name: Tests (ubuntu, serial)
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '17 22 * * *'
permissions: read-all
env:
OMP_NUM_THREADS: 1
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.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Create conda environment
uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1
with:
environment-file: .github/conda/mpich.yml
miniforge-version: latest
python-version: ${{ matrix.python-version }}
activate-environment: test
auto-activate: 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
run: |
python3 -m pytest -vv tests/