11cb0ef41Sopenharmony_ci# TODO: Enable os: windows-latest 21cb0ef41Sopenharmony_ci# TODO: Enable pytest --doctest-modules 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ciname: Python_tests 51cb0ef41Sopenharmony_cion: [push, pull_request] 61cb0ef41Sopenharmony_cijobs: 71cb0ef41Sopenharmony_ci Python_tests: 81cb0ef41Sopenharmony_ci runs-on: ${{ matrix.os }} 91cb0ef41Sopenharmony_ci strategy: 101cb0ef41Sopenharmony_ci fail-fast: false 111cb0ef41Sopenharmony_ci max-parallel: 8 121cb0ef41Sopenharmony_ci matrix: 131cb0ef41Sopenharmony_ci os: [macos-latest, ubuntu-latest] # , windows-latest] 141cb0ef41Sopenharmony_ci python-version: ["3.7", "3.8", "3.9", "3.10"] 151cb0ef41Sopenharmony_ci steps: 161cb0ef41Sopenharmony_ci - uses: actions/checkout@v3 171cb0ef41Sopenharmony_ci - name: Set up Python ${{ matrix.python-version }} 181cb0ef41Sopenharmony_ci uses: actions/setup-python@v3 191cb0ef41Sopenharmony_ci with: 201cb0ef41Sopenharmony_ci python-version: ${{ matrix.python-version }} 211cb0ef41Sopenharmony_ci - name: Install dependencies 221cb0ef41Sopenharmony_ci run: | 231cb0ef41Sopenharmony_ci python -m pip install --upgrade pip 241cb0ef41Sopenharmony_ci pip install -r requirements_dev.txt 251cb0ef41Sopenharmony_ci - name: Lint with flake8 261cb0ef41Sopenharmony_ci run: flake8 . --ignore=E203,W503 --max-complexity=101 --max-line-length=88 --show-source --statistics 271cb0ef41Sopenharmony_ci - name: Test with pytest 281cb0ef41Sopenharmony_ci run: pytest 291cb0ef41Sopenharmony_ci # - name: Run doctests with pytest 301cb0ef41Sopenharmony_ci # run: pytest --doctest-modules 31