|
@@ -22,7 +22,6 @@ jobs:
|
|
|
extra-mypy-options: "--ignore-missing-imports --implicit-optional --no-namespace-packages --exclude (taipy/templates/|generate_pyi.py|tools) --follow-imports skip"
|
|
|
|
|
|
- uses: chartboost/ruff-action@v1
|
|
|
-
|
|
|
tests:
|
|
|
needs: linter
|
|
|
timeout-minutes: 40
|
|
@@ -91,7 +90,7 @@ jobs:
|
|
|
|
|
|
- name: Pytest Core
|
|
|
if: steps.changes.outputs.core == 'true'
|
|
|
- run: pipenv run pytest tests/core
|
|
|
+ run: pipenv run pytest -m "not orchestrator_dispatcher and not modin and not standalone" tests/core
|
|
|
|
|
|
- name: Pytest GUI
|
|
|
if: steps.changes.outputs.gui == 'true'
|
|
@@ -109,6 +108,123 @@ jobs:
|
|
|
if: steps.changes.outputs.rest == 'true'
|
|
|
run: pipenv run pytest tests/rest
|
|
|
|
|
|
- - name: Pytest Template
|
|
|
+ - name: Pytest Templates
|
|
|
if: steps.changes.outputs.templates == 'true'
|
|
|
run: pipenv run pytest tests/templates
|
|
|
+
|
|
|
+ submit_tests:
|
|
|
+ needs: linter
|
|
|
+ timeout-minutes: 20
|
|
|
+ strategy:
|
|
|
+ fail-fast: false
|
|
|
+ matrix:
|
|
|
+ python-version: ['3.8', '3.9', '3.10', '3.11']
|
|
|
+ os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v4
|
|
|
+
|
|
|
+ - uses: dorny/paths-filter@v2
|
|
|
+ id: changes
|
|
|
+ with:
|
|
|
+ filters: |
|
|
|
+ core:
|
|
|
+ - 'taipy/core/**'
|
|
|
+
|
|
|
+ - uses: actions/setup-python@v5
|
|
|
+ with:
|
|
|
+ python-version: ${{matrix.python-version}}
|
|
|
+
|
|
|
+ - name: Install pipenv
|
|
|
+ if: steps.changes.outputs.core == 'true'
|
|
|
+ run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
|
|
+
|
|
|
+ - name: Install Dependencies
|
|
|
+ if: steps.changes.outputs.core == 'true'
|
|
|
+ run: pipenv install --dev --python=${{ matrix.python-version }}
|
|
|
+
|
|
|
+ - name: Setup LibMagic (MacOS)
|
|
|
+ if: matrix.os == 'macos-latest' && steps.changes.outputs.core == 'true'
|
|
|
+ run: brew install libmagic
|
|
|
+
|
|
|
+ - name: Pytest Core orchestrator_dispatcher
|
|
|
+ if: steps.changes.outputs.core == 'true'
|
|
|
+ run: pipenv run pytest -m "orchestrator_dispatcher" tests/core
|
|
|
+
|
|
|
+ standalone_tests:
|
|
|
+ needs: linter
|
|
|
+ timeout-minutes: 20
|
|
|
+ strategy:
|
|
|
+ fail-fast: false
|
|
|
+ matrix:
|
|
|
+ python-version: ['3.8', '3.9', '3.10', '3.11']
|
|
|
+ os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v4
|
|
|
+
|
|
|
+ - uses: dorny/paths-filter@v2
|
|
|
+ id: changes
|
|
|
+ with:
|
|
|
+ filters: |
|
|
|
+ core:
|
|
|
+ - 'taipy/core/**'
|
|
|
+
|
|
|
+ - uses: actions/setup-python@v5
|
|
|
+ with:
|
|
|
+ python-version: ${{matrix.python-version}}
|
|
|
+
|
|
|
+ - name: Install pipenv
|
|
|
+ if: steps.changes.outputs.core == 'true'
|
|
|
+ run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
|
|
+
|
|
|
+ - name: Install Dependencies
|
|
|
+ if: steps.changes.outputs.core == 'true'
|
|
|
+ run: pipenv install --dev --python=${{ matrix.python-version }}
|
|
|
+
|
|
|
+ - name: Setup LibMagic (MacOS)
|
|
|
+ if: matrix.os == 'macos-latest' && steps.changes.outputs.core == 'true'
|
|
|
+ run: brew install libmagic
|
|
|
+
|
|
|
+ - name: Pytest Core standalone
|
|
|
+ if: steps.changes.outputs.core == 'true'
|
|
|
+ run: pipenv run pytest -m "standalone" tests/core
|
|
|
+
|
|
|
+ modin_tests:
|
|
|
+ needs: linter
|
|
|
+ timeout-minutes: 20
|
|
|
+ strategy:
|
|
|
+ fail-fast: false
|
|
|
+ matrix:
|
|
|
+ python-version: ['3.8', '3.9', '3.10', '3.11']
|
|
|
+ os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v4
|
|
|
+
|
|
|
+ - uses: dorny/paths-filter@v2
|
|
|
+ id: changes
|
|
|
+ with:
|
|
|
+ filters: |
|
|
|
+ core:
|
|
|
+ - 'taipy/core/**'
|
|
|
+
|
|
|
+ - uses: actions/setup-python@v5
|
|
|
+ with:
|
|
|
+ python-version: ${{matrix.python-version}}
|
|
|
+
|
|
|
+ - name: Install pipenv
|
|
|
+ if: steps.changes.outputs.core == 'true'
|
|
|
+ run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
|
|
|
+
|
|
|
+ - name: Install Dependencies
|
|
|
+ if: steps.changes.outputs.core == 'true'
|
|
|
+ run: pipenv install --dev --python=${{ matrix.python-version }}
|
|
|
+
|
|
|
+ - name: Setup LibMagic (MacOS)
|
|
|
+ if: matrix.os == 'macos-latest' && steps.changes.outputs.core == 'true'
|
|
|
+ run: brew install libmagic
|
|
|
+
|
|
|
+ - name: Pytest Core modin
|
|
|
+ if: steps.changes.outputs.core == 'true'
|
|
|
+ run: pipenv run pytest -m "modin" tests/core
|