[Hotfix Main]: [SNAPPY] Added validator for duplicate refinements on an entity #7730
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: unit testing | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main, develop, release-candidate/* ] | |
| pull_request: | |
| types: [ opened, synchronize, reopened, ready_for_review ] | |
| 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 }} | |
| defaults: | |
| run: | |
| shell: bash | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| 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: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| version: 2.3.1 # Aligned with poetry.lock generator version | |
| virtualenvs-in-project: true | |
| virtualenvs-create: true | |
| - 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 |