"Fossies" - the Fresh Open Source Software Archive

Member "node-v12.18.4-win-x64/node_modules/npm/node_modules/node-gyp/.github/workflows/Python_tests.yml" (20 Mar 2020, 1578 Bytes) of package /windows/www/node-v12.18.4-win-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # TODO: Line 15, enable python-version: 3.5
    2 # TODO: Line 36, enable pytest --doctest-modules
    3 
    4 name: Python_tests
    5 on: [push, pull_request]
    6 jobs:
    7   Python_tests:
    8     runs-on: ${{ matrix.os }}
    9     strategy:
   10       fail-fast: false
   11       max-parallel: 15
   12       matrix:
   13         os: [macos-latest, ubuntu-latest, windows-latest]
   14         python-version: [2.7, 3.6, 3.7, 3.8]  # 3.5,
   15     steps:
   16       - uses: actions/checkout@v1
   17       - name: Set up Python ${{ matrix.python-version }}
   18         uses: actions/setup-python@v1
   19         with:
   20           python-version: ${{ matrix.python-version }}
   21       - name: Install dependencies
   22         run: |
   23           python -m pip install --upgrade pip
   24           pip install flake8 pytest  # -r requirements.txt
   25       - name: Lint with flake8
   26         if: matrix.os == 'ubuntu-latest'
   27         run: |
   28           # stop the build if there are Python syntax errors or undefined names
   29           flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
   30           # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
   31           flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
   32       - name: Test with pytest (Linux and macOS)
   33         if: matrix.os != 'windows-latest'
   34         run: pytest
   35       - name: Test with pytest (Windows)
   36         if: matrix.os == 'windows-latest'
   37         shell: bash
   38         run: GYP_MSVS_VERSION=2015 GYP_MSVS_OVERRIDE_PATH="C:\\Dummy" pytest
   39       # - name: Run doctests with pytest
   40       #   run: pytest --doctest-modules