Add unit tests for reaction methods #11
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: testsuite | |
on: | |
push: | |
pull_request: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-latest | |
env: | |
FI_PROVIDER: "^psm3,psm3;ofi_rxd" | |
OMPI_MCA_mtl_ofi_provider_exclude: psm3 | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Validate CITATION.cff | |
uses: dieghernan/cff-validator@v3 | |
- name: Setup EESSI | |
uses: eessi/github-action-eessi@v3 | |
with: | |
eessi_stack_version: "2023.06" | |
- name: Install dependencies | |
uses: ./.github/actions/dependencies | |
with: | |
modules: |- | |
ESPResSo/4.2.1-foss-2023a | |
extra-python-packages: |- | |
pdoc==14.3 | |
pylint==3.0.3 | |
coverage==7.4.4 | |
- name: Run testsuite | |
run: | | |
module restore pymbe | |
source venv/bin/activate | |
make pylint | |
make unit_tests COVERAGE=1 | |
make docs | |
make coverage_xml | |
shell: bash | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
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@v4 | |
with: | |
file: "./coverage.xml" | |
disable_search: true | |
env_vars: OS,PYTHON | |
fail_ci_if_error: false | |
flags: unittests | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true |