Repository navigation
80 lines (77 loc) · 2.45 KB
/
Copy pathtestsuite.yml
File metadata and controls
80 lines (77 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: testsuite
on:
push:
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
ubuntu:
runs-on: ubuntu-26.04
env:
FI_PROVIDER: "^psm3,psm3;ofi_rxd"
OMPI_MCA_mtl_ofi_provider_exclude: psm3
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
software:
- label: "ESPResSo 5.0.1"
eessi_modules: ESPResSo/5.0.1-foss-2025a
eessi_stack_version: "2025.06"
upload_artifact: true
- label: "ESPResSo 5.1-dev"
eessi_modules: ESPResSo/cd7547c43b2dae8e96487bf149d049d701dddd43-foss-2025a
eessi_stack_version: "2025.06"
upload_artifact: false
name: ubuntu - ${{ matrix.software.label }}
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Validate CITATION.cff
uses: dieghernan/cff-validator@v5
with:
install-r: true # Ensure R is explicitly installed
- name: Setup EESSI
uses: eessi/github-action-eessi@v3
with:
eessi_stack_version: ${{ matrix.software.eessi_stack_version }}
use_eessi_module: false
- name: Install dependencies
uses: ./.github/actions/dependencies
with:
modules: |-
${{ matrix.software.eessi_modules }}
extra-python-packages: |-
pdoc==16.0.0
pylint==4.0.5
coverage==7.13.5
- name: Run testsuite
run: |
export NUM_PROC=$(nproc)
export OMP_PROC_BIND=false OMP_NUM_THREADS=1
export PRTE_MCA_hwloc_default_binding_policy=none
module restore pymbe
source venv/bin/activate
make pylint
make unit_tests -j${NUM_PROC} COVERAGE=1
make docs
make coverage_xml
shell: bash
- name: Upload artifact
if: ${{ matrix.software.upload_artifact }}
uses: actions/upload-artifact@v7
with:
path: "./documentation"
name: documentation
retention-days: 2
if-no-files-found: error
- name: Upload coverage to Codecov
if: ${{ github.repository == 'pyMBE-dev/pyMBE' }}
uses: codecov/codecov-action@v7
with:
files: "./coverage.xml"
disable_search: true
env_vars: OS,PYTHON
fail_ci_if_error: false
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true