added NavierStokesModifiedRestartSolution to flow360 namespace #5174
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: unit testing | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ develop, release-candidate/* ] | |
pull_request: | |
types: [ opened, synchronize, reopened, ready_for_review ] | |
branches: [ develop, release-candidate/* ] | |
workflow_call: | |
jobs: | |
code-style: | |
uses: ./.github/workflows/codestyle.yml | |
testing: | |
needs: code-style | |
name: test ${{ matrix.python-version }} - ${{ matrix.platform }} | |
runs-on: ${{ matrix.platform }} | |
strategy: | |
matrix: | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
clean: true | |
- name: Create local temp folder and override environment | |
run: | | |
mkdir temp | |
echo "TEMP=${{ github.workspace }}/temp" >> $GITHUB_ENV | |
echo "TMP=${{ github.workspace }}/temp" >> $GITHUB_ENV | |
- name: Install poetry | |
run: | | |
pipx install poetry | |
# create local virtual environment | |
poetry config --local virtualenvs.in-project true | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Run simulation_params tests | |
run: poetry run pytest -rA tests/simulation -vv | |
- name: Run flow360_params tests | |
run: poetry run pytest -rA --ignore tests/simulation -vv |