Adding missing counter #68
Workflow file for this run
This file contains hidden or 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: Run pymm | |
| on: | |
| pull_request: | |
| jobs: | |
| run-pymm-local: | |
| permissions: | |
| contents: read | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-26.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install OpenFOAM and gmsh | |
| run: | | |
| sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key > /etc/apt/trusted.gpg.d/openfoam.asc" | |
| sudo add-apt-repository "http://dl.openfoam.org/ubuntu main dev" | |
| sudo sed -i "s/^\(deb\).*\(http\)/\1 [arch=amd64] \2/" /etc/apt/sources.list.d/*dl_openfoam_org*list | |
| sudo apt-get update | |
| sudo apt -y install openfoam14 gmsh | |
| - name: Install pymm and python requirements | |
| run: | | |
| python3.14 -m venv vpymm | |
| . vpymm/bin/activate | |
| echo "$PWD/vpymm/bin" >> $GITHUB_PATH | |
| pip install --upgrade pip setuptools wheel | |
| pip install . | |
| pip install -r dev-requirements.txt | |
| - name: Check code style and linting | |
| run: | | |
| black --target-version py314 src/ tests/ --check | |
| pylint src/ tests/ | |
| ruff check src/ tests/ | |
| mypy --ignore-missing-imports src/ tests/ | |
| - name: Run the tests | |
| run: | | |
| set +e | |
| source /opt/openfoam14/etc/bashrc | |
| set -e | |
| pytest --cov=pymm --cov-report term-missing --basetemp=test_outputs tests/ --exitfirst | |
| - name: Build documentation | |
| run: | | |
| pushd docs | |
| make html SPHINXOPTS="-W" |