Skip to content

Add more fixes for the OSSF scorecard #1555

Add more fixes for the OSSF scorecard

Add more fixes for the OSSF scorecard #1555

Workflow file for this run

name: Tests (ubuntu, parallel)
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '03 22 * * *'
permissions: read-all
jobs:
parallel_tests:
name: Test (py=${{ matrix.python-version}}, ${{ matrix.mpi }})
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"]
mpi: [mpich, openmpi]
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Create conda environment
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
with:
environment-file: .github/conda/${{ matrix.mpi }}.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 in parallel
env:
OMP_NUM_THREADS: 1
run: |
mpirun -n 2 python3 -m pytest -vv --timeout=1800 -p no:cacheprovider --randomly-seed=${{ github.run_id }} tests/