This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
Feature/#668 dn is up to date #1941
Workflow file for this run
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: Python tests | |
on: | |
push: | |
branches: [ develop, dev/*, release/* ] | |
pull_request: | |
branches: [ develop , dev/*, release/* ] | |
jobs: | |
backend: | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
python-versions: ['3.8', '3.9', '3.10', '3.11'] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Install Tox | |
run: pip install tox | |
- name: Run linter and all tests except Pyodbc's, Pymysql's, Psycopg2's, and Fastparquet | |
if: matrix.python-versions == '3.10' && matrix.os == 'windows-latest' | |
env: | |
TOX_PARALLEL_NO_SPINNER: 1 | |
run: tox -p all | |
- name: Ensure no usage of manager or repository classes without factory | |
if: matrix.python-versions == '3.10' && matrix.os == 'ubuntu-latest' | |
run: | | |
! grep -rP '_ScenarioManager(?!Factory)' taipy --exclude="_scenario_manager*.py" --exclude-dir="__pycache__" | |
! grep -rP '_DataManager(?!Factory)' taipy --exclude="_data_manager*.py" --exclude-dir="__pycache__" | |
! grep -rP '_TaskManager(?!Factory)' taipy --exclude="_task_manager*.py" --exclude-dir="__pycache__" | |
! grep -rP '_SequenceManager(?!Factory)' taipy --exclude="_sequence_manager*.py" --exclude-dir="__pycache__" | |
! grep -rP '_JobManager(?!Factory)' taipy --exclude="_job_manager*.py" --exclude-dir="__pycache__" | |
! grep -rP '_CycleManager(?!Factory)' taipy --exclude="_cycle_manager*.py" --exclude-dir="__pycache__" | |
! grep -rP '_ScenarioRepository(?!Factory)' taipy --exclude="_scenario_repository*.py" --exclude-dir="__pycache__" | |
! grep -rP '_DataRepository(?!Factory)' taipy --exclude="_data_repository*.py" --exclude-dir="__pycache__" | |
! grep -rP '_TaskRepository(?!Factory)' taipy --exclude="_task_repository*.py" --exclude-dir="__pycache__" | |
! grep -rP '_SequenceRepository(?!Factory)' taipy --exclude="_sequence_repository*.py" --exclude-dir="__pycache__" | |
! grep -rP '_JobRepository(?!Factory)' taipy --exclude="_job_repository*.py" --exclude-dir="__pycache__" | |
! grep -rP '_CycleRepository(?!Factory)' taipy --exclude="_cycle_repository*.py" --exclude-dir="__pycache__" | |
- name: Run all tests | |
if: matrix.python-versions != '3.10' || matrix.os != 'windows-latest' | |
env: | |
TOX_PARALLEL_NO_SPINNER: 1 | |
run: tox -e all-tests |